:
#
# Cyclades minor device numbers were changed to start from 0
# sometime in rev 1.3. If you're wanting to boot 1.2 and 1.3
# systems, you need something to recreate the device files with
# the correct minor device numbers. This will need to run at boot.
# Alan Wendt
#
# Caution: I've tested this only on one 1.3.97 system.
#
device=0
case `uname -r` in
1.1.*|1.2.*)
minor=32
;;
*)
minor=0
;;
esac
while [ $device -lt 128 ]
do
if [ -c /dev/ttyC$device ]
then
rm -f /dev/ttyC$device /dev/cub$device
mknod /dev/ttyC$device c 19 $minor
mknod /dev/cub$device c 20 $minor
fi
device=`expr $device + 1`
minor=`expr $minor + 1`
done