diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-13 22:37:05 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-05-18 19:09:37 +0200 |
commit | c5b1a1cef975686ff130c71b5212e3304af5625a (patch) | |
tree | 00090de7df19cd17cfeb276d177c749927623fdc /init | |
parent | 013fe608a00be5c56d9dc9696c5cf8542d0c5736 (diff) | |
download | mkinitcpio-c5b1a1cef975686ff130c71b5212e3304af5625a.tar.gz mkinitcpio-c5b1a1cef975686ff130c71b5212e3304af5625a.tar.xz |
init: remove hardcoded udev startup/shutdown
This will be handled by udev's run_earlyhook and run_cleanuphook,
respectively.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init')
-rw-r--r-- | init | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -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: |