diff options
author | 2012-07-04 11:24:01 -0500 | |
---|---|---|
committer | 2012-07-04 11:24:01 -0500 | |
commit | 8558d209a84d515a0c3e2992ed5a9ec2a3aea014 (patch) | |
tree | 5bb993522d42814002064e0290df3f8882aa6bb3 | |
parent | add caching to get_rundir (diff) | |
download | udev-gentoo-scripts-8558d209a84d515a0c3e2992ed5a9ec2a3aea014.tar.gz udev-gentoo-scripts-8558d209a84d515a0c3e2992ed5a9ec2a3aea014.tar.bz2 udev-gentoo-scripts-8558d209a84d515a0c3e2992ed5a9ec2a3aea014.zip |
remove check_udev_works and cleanup functions
The check_udev_works function used a test which is no longer valid
since udev doesn't create device nodes. Also, there is not a need for
the cleanup function since if udev doesn't start start_post will never
be called.
-rw-r--r-- | init.d/udev | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/init.d/udev b/init.d/udev index 365f78a..ba5b25f 100644 --- a/init.d/udev +++ b/init.d/udev @@ -77,13 +77,6 @@ get_rundir() return 0 } -cleanup() -{ - # fail more gracely and not leave udevd running - start-stop-daemon --stop --exec ${command} - exit 1 -} - is_service_enabled() { local svc="$1" @@ -164,16 +157,6 @@ populate_dev() return 0 } -check_udev_works() -{ - # should exist on every system, else udev failed - if [ ! -e /dev/zero ]; then - eerror "Assuming udev failed somewhere, as /dev/zero does not exist." - return 1 - fi - return 0 -} - stop_udevmonitor() { yesno "${udev_monitor}" || return 0 @@ -202,7 +185,6 @@ start_post() { start_udevmonitor populate_dev - check_udev_works || cleanup stop_udevmonitor display_hotplugged_services return 0 |