From 8558d209a84d515a0c3e2992ed5a9ec2a3aea014 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 4 Jul 2012 11:24:01 -0500 Subject: 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. --- init.d/udev | 18 ------------------ 1 file changed, 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 -- cgit v1.2.3-65-gdbad