X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fudev;fp=stage1%2Fbootscripts%2Fudev;h=7c10b0df5238e71699b603692a494409aa465da4;hb=2f26e347a05e245d6f57cb6603a7a51a4418b80d;hp=705b1603daa6acc98b30277a4fbf69e977325dee;hpb=268f9623ef6268273f92d73e04eab0e586a7d488;p=hvlinux.git diff --git a/stage1/bootscripts/udev b/stage1/bootscripts/udev index 705b160..7c10b0d 100644 --- a/stage1/bootscripts/udev +++ b/stage1/bootscripts/udev @@ -3,6 +3,10 @@ # udev # Udev cold-plugging script +DAEMON=/sbin/udevd +DAEMON_DESC=UDEV +DAEMON_OPTS="--daemon" + # Source functions library source /etc/rc.d/init.d/functions @@ -25,7 +29,7 @@ udev_start() echo "" > /sys/kernel/uevent_helper && # Start the udev daemon to continually watch for, and act on uevents - /sbin/udevd --daemon + ${DAEMON} ${DAEMON_OPTS} } # See how we were called @@ -40,16 +44,14 @@ case "$1" in # The reason we don't write to mtab is because we don't ever # want /dev to be unavailable (such as by `umount -a'). cmd_run_log_box "Mounting /dev in tmpfs" mount -n -t tmpfs -o mode=0755 udev /dev - cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev - cmd_run_log_box "Setting permissons on /dev/shm" chmod 1777 /dev/shm - cmd_run_log_box_warn "Starting udevd" udev_start + cmd_run_log_box_warn "${DAEMON_DESC} start" udev_start cmd_run_log_box "Performing Coldplugging" udev_coldplug ;; - + *) echo "Usage: $0 {start}" exit ${EXIT_CODE_FAILURE}