fcdfdbba5c
* Use "mknod -F netbsd -r" to create nodes, instead of "rm ; mknod; chmod; chown". This means permissions & ownership of existing nodes will not be changed. This is up to 30% faster when populating an empty /dev, and nearly 2x faster when re-running on an existing /dev. * New options: -f force change of permission & ownership of existing devices -m mknod override name/path of mknod program (which defaults to $TOOL_MKNOD, then "mknod"). -s generate mtree(8) specfile instead of creating devices * Remove /usr/etc from $PATH; not needed anymore. * Provide functions to create devices & directories: mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]] create device node `name' with the appropriate permissions lndev src target create a symlink from src to target makedir dir mode create directory with appropriate mode * UIDs and GIDs are hardcoded in at MAKEDEV generation time. (Unfortunately there's not a simple way of determining a GID a la "id -n user" for determining a UID). This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH combination and comparing the results of "MAKEDEV all" from the previous version to the new one. (This testing actually highlighted mistakes in the previous configuration!) Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s"
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# $NetBSD: MAKEDEV.conf,v 1.4 2003/12/21 17:37:26 lukem Exp $
|
|
|
|
all_md)
|
|
makedev wscons sd0 sd1 sd2 st0 st1 cd0 cd1 wd0 wd1
|
|
makedev ss0 ch0 uk0 uk1
|
|
makedev mlx0 ld0 ld1 ld2 ld3
|
|
makedev tty00 tty01 tty10
|
|
makedev usbs ttyCZ0 ttyCY0 audio
|
|
makedev music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
|
|
makedev nvram apm adb grf0 openfirm
|
|
makedev scsibus0 scsibus1 scsibus2 scsibus3
|
|
makedev isdns
|
|
makedev pci0 pci1 pci2 pci3 pci4 pci5 pci6 pci7
|
|
makedev sysmon
|
|
makedev bktr
|
|
makedev radio
|
|
makedev kttcp
|
|
;;
|
|
|
|
floppy)
|
|
makedev std sd0 sd1 sd2 tty00 tty01 opty
|
|
makedev st0 st1 cd0 cd1 wd0 wd1 md0
|
|
makedev ttyE0 wsmouse0 wskbd0 ttyEcfg
|
|
;;
|
|
|
|
tty1[0-9])
|
|
# Mac uses special mapping - tty0[01] are the zstty ports,
|
|
# tty1? are 'com' ports; for 'com' ports, we need to start
|
|
# at correct offset, i.e. substract 10
|
|
ounit=${i#tty}
|
|
ounit=$(($ounit + 0))
|
|
if [ $ounit -lt 10 ]; then
|
|
unit=0$ounit
|
|
else
|
|
unit=$ounit
|
|
fi
|
|
ounit=$(($ounit - 10))
|
|
mkdev tty$unit c 45 $(($ounit + $dialin )) "" "" $u_uucp
|
|
mkdev dty$unit c 45 $(($ounit + $dialout)) "" "" $u_uucp
|
|
;;
|