summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-11-03 12:49:49 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-11-03 14:37:00 -0600
commit7da8580803a5d44247d117c98e5df52761ae0c0d (patch)
tree467adbc395f13b79e5eebf519437295355ed8c84
parentstart work on version 28 (diff)
downloadudev-gentoo-scripts-7da8580803a5d44247d117c98e5df52761ae0c0d.tar.gz
udev-gentoo-scripts-7da8580803a5d44247d117c98e5df52761ae0c0d.tar.bz2
udev-gentoo-scripts-7da8580803a5d44247d117c98e5df52761ae0c0d.zip
move default for udev_monitor to the yesno calls
-rw-r--r--init.d/udev5
1 files 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}"