From 7da8580803a5d44247d117c98e5df52761ae0c0d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 3 Nov 2014 12:49:49 -0600 Subject: move default for udev_monitor to the yesno calls --- init.d/udev | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init.d/udev b/init.d/udev index 72b2be2..654eee3 100644 --- a/init.d/udev +++ b/init.d/udev @@ -7,7 +7,6 @@ description="udev manages device permissions and symbolic links in /dev" extra_started_commands="reload" description_reload="Reload the udev rules and databases" -udev_monitor="${udev_monitor:-no}" udevmonitor_log=/run/udevmonitor.log udevmonitor_pid=/run/udevmonitor.pid @@ -76,7 +75,7 @@ start_pre() start_udevmonitor() { - yesno "${udev_monitor}" || return 0 + yesno "${udev_monitor:-no}" || return 0 einfo "udev: Running udevadm monitor ${udev_monitor_opts} to log all events" start-stop-daemon --start --stdout "${udevmonitor_log}" \ @@ -131,7 +130,7 @@ populate_dev() stop_udevmonitor() { - yesno "${udev_monitor}" || return 0 + yesno "${udev_monitor:-no}" || return 0 if yesno "${udev_monitor_keep_running:-no}"; then ewarn "udev: udevmonitor is still running and writing into ${udevmonitor_log}" -- cgit v1.2.3-65-gdbad