From c5b1a1cef975686ff130c71b5212e3304af5625a Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 13 May 2012 16:37:05 -0400 Subject: init: remove hardcoded udev startup/shutdown This will be handled by udev's run_earlyhook and run_cleanuphook, respectively. Signed-off-by: Dave Reisner --- init | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'init') diff --git a/init b/init index 44c10b0..e5af8f3 100644 --- a/init +++ b/init @@ -1,5 +1,6 @@ #!/usr/bin/ash PATH=/usr/bin +udevd_running=0 . /init_functions @@ -12,16 +13,6 @@ mkdir -m755 /run/initramfs # parse the kernel command line parse_cmdline -# if available, start udevd at this stage -if [ -x /usr/lib/udev/udevd ]; then - msg ":: Starting udevd..." - /usr/lib/udev/udevd --daemon --resolve-names=never - udevd_running=1 - msg "done." -else - udevd_running=0 -fi - for d in ${disablehooks//,/ }; do [ -e "/hooks/$d" ] && chmod 644 "/hooks/$d" done @@ -92,12 +83,6 @@ if [ "${break}" = "postmount" ]; then launch_interactive_shell fi -# Stop udevd if is running -if [ "${udevd_running}" -eq 1 ]; then - udevadm control --exit - udevadm info --cleanup-db -fi - exec env -i "TERM=$TERM" /sbin/switch_root /new_root $init "$@" # vim: set ft=sh ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b