diff --git a/etc/init/udev.conf b/etc/init/udev.conf index aaaa779..95b8fb0 100644 --- a/etc/init/udev.conf +++ b/etc/init/udev.conf @@ -20,20 +20,17 @@ pre-start script fi mount -n -t tmpfs -o mode=0755 udev /dev status_message "udev: tmpfs on /dev created" - if [ -d /lib/udev/devices ]; then - cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev - status_message "udev: Static entries copied..." - fi + test -d /lib/udev/devices && + cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev && + status_message "udev: Static entries copied..." /bin/mkdir -p /dev/shm /bin/mkdir -p /dev/pts /bin/mount -n -t tmpfs -o mode=1755 none /dev/shm - if [ ! -c /dev/null ]; then - /bin/mknod /dev/null c 1 3 - fi + test -c /dev/null || + /bin/mknod /dev/null c 1 3 && /bin/chmod 666 /dev/null - if [ ! -c /dev/console ]; then - /bin/mknod /dev/console c 5 1 - fi + test -c /dev/console || + /bin/mknod /dev/console c 5 1 status_message "udev prestart ready" end script