diff options
Diffstat (limited to 'init')
-rw-r--r-- | init | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -4,7 +4,6 @@ . /init_functions -msg ":: Loading Initramfs" /bin/mount -t proc proc /proc -o nosuid,noexec,nodev /bin/mount -t sysfs sys /sys -o nosuid,noexec,nodev if grep -q devtmpfs /proc/filesystems 2>/dev/null; then @@ -29,17 +28,6 @@ echo "/sbin/modprobe" > /proc/sys/kernel/modprobe # set default mount handler mount_handler="default_mount_handler" -# if available, start udevd at this stage -if [ -x /sbin/udevd ]; then - msg ":: Starting udevd..." - echo > /proc/sys/kernel/hotplug - /sbin/udevd --daemon --resolve-names=never - udevd_running=1 - msg "done." -else - udevd_running=0 -fi - for cmd in ${CMDLINE}; do case "${cmd}" in \#*) break ;; # ignore everything after a # in the commandline @@ -62,6 +50,17 @@ for cmd in ${CMDLINE}; do esac done +# if available, start udevd at this stage +if [ -x /sbin/udevd ]; then + msg ":: Starting udevd..." + echo > /proc/sys/kernel/hotplug + /sbin/udevd --daemon --resolve-names=never + udevd_running=1 + msg "done." +else + udevd_running=0 +fi + if [ -n "${disablehooks}" ]; then for d in $(echo "${disablehooks}" | sed 's|,| |g'); do eval "hook_${d}=disabled" |