$ cat MAKE-DEV
#!/bin/csh
set dvno=`cat /proc/devices|grep pt1 | awk '{print $1}'`
mknod /dev/pt1video0 c $dvno 0
mknod /dev/pt1video1 c $dvno 1
mknod /dev/pt1video2 c $dvno 2
mknod /dev/pt1video3 c $dvno 3
sleep 3
chmod 666 /dev/pt1video0
chmod 666 /dev/pt1video1
chmod 666 /dev/pt1video2
chmod 666 /dev/pt1video3
sleep 3
modprobe pt1_drv
Comments