nixpkgs-suyu/boot/make-devices.sh
Eelco Dolstra 11e4d36db1 * Look for the CD-ROM in /sys/block, not /sys/devices. Don't look for
a "media" file since SCSI CD-ROM drives don't have it (and
  supposedly it's going away in IDE too).
* Create the device node automatically from the "dev" file in
  /sys/block/$bla.  

svn path=/nixos/trunk/; revision=7473
2006-12-23 01:16:39 +00:00

15 lines
346 B
Bash

mknod -m 0600 /dev/ttyS0 c 4 64
mknod -m 0600 /dev/ttyS1 c 4 65
mknod -m 0600 /dev/ttyS2 c 4 66
mknod -m 0600 /dev/ttyS3 c 4 67
# base UNIX devices
mknod -m 0600 /dev/mem c 1 1
mknod -m 0666 /dev/null c 1 3
mknod -m 0666 /dev/zero c 1 5
# tty
mknod -m 0600 /dev/tty c 5 0
if ! test -e /dev/console; then
mknod -m 0600 /dev/console c 5 1
fi