* Mount devpts.

* Set the right permissions on /dev/tty and /dev/ptmx.

svn path=/nixos/trunk/; revision=7703
This commit is contained in:
Eelco Dolstra 2007-01-16 22:34:15 +00:00
parent 55e7f8f5dc
commit cf9016d816
2 changed files with 7 additions and 0 deletions

View file

@ -69,6 +69,8 @@ done
# More special file systems, initialise required directories.
mount -t sysfs none /sys
mount -t tmpfs -o "mode=0755" none /dev
mkdir -m 0755 -p /dev/pts
mount -t devpts none /dev/pts
needWritableDir /tmp 01777
needWritableDir /var 0755
needWritableDir /nix/var 0755

View file

@ -12,6 +12,11 @@ KERNEL=="sonypi", MODE="0666"
KERNEL=="agpgart", MODE="0600"
# TTYs.
KERNEL=="tty", NAME="%k", MODE="666", OPTIONS="last_rule" # GROUP="tty"
KERNEL=="ptmx", NAME="%k", MODE="666" # GROUP="tty"
# Input devices go under /dev/input.
KERNEL=="mouse*|mice", NAME="input/%k", MODE="0640"
KERNEL=="event*", NAME="input/%k", MODE="0640"