Subject: New device major numbers
To: None <port-sun3@sun-lamp.cs.berkeley.edu>
From: Gordon W. Ross <gwr@jericho.mc.com>
List: port-sun3
Date: 06/01/1994 23:27:36
I have updated conf.c to use the same device major numbers as
SunOS-4.1.1 so you will need to remake some device nodes after
the next update and rebuild. Here is a temporary MAKEDEV script
updated to reflect the new device numbers:
#! /bin/sh
# etc.sun3/MAKEDEV
PATH=/usr/bin:/usr/ucb:/usr/etc:/etc:/bin:.
umask 77
# mk name b/c major minor [mode] [group]
mk() {
mknod $1 $2 $3 $4 &&
chmod ${5-666} $1 &&
test -n "$6" && chgrp $6 $1
return 0
}
args="$@"
for i in $args
do
unit=`expr $i : '[a-z][a-z]*\([0-9][0-9]*\)'`
case $unit in
"") unit=0 ;;
esac
case $i in
std)
mk console c 0 0 622
mk kd c 1 0 622
mk tty c 2 0
mk mem c 3 0 640 kmem
mk kmem c 3 1 640 kmem
mk null c 3 2
mk eeprom c 3 11 640 kmem
mk zero c 3 12
mk ttya c 12 0
mk ttyb c 12 1
mk mouse c 13 0
mk klog c 16 0 600
mk fb c 22 0
mk kbd c 29 0
;;
esac
done
------------------------------------------------------------------------------