summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-11-23 22:32:03 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-11-23 22:32:03 -0600
commit250fc14433c92e1d170fbe9ca3acf48bcba6265f (patch)
treee5ec34d9bc640fa5481fe66e09919d6da2fe405d /init.d/udev
parentStart work on version 18 (diff)
downloadudev-gentoo-scripts-250fc14433c92e1d170fbe9ca3acf48bcba6265f.tar.gz
udev-gentoo-scripts-250fc14433c92e1d170fbe9ca3acf48bcba6265f.tar.bz2
udev-gentoo-scripts-250fc14433c92e1d170fbe9ca3acf48bcba6265f.zip
udev: start /sbin/udevd if it exists18
This was added so that the eudev fork can use the udev-init-scriptss package. X-Gentoo-Bug: 444396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=444396
Diffstat (limited to 'init.d/udev')
-rw-r--r--init.d/udev7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.d/udev b/init.d/udev
index 520b91e..3dbc1a4 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -2,7 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-command=/usr/lib/systemd/systemd-udevd
+if [ -x /sbin/udevd ]; then
+ command=/sbin/udevd
+else
+ command=/usr/lib/systemd/systemd-udevd
+fi
+
command_args="--daemon ${udev_opts}"
description="udev manages device permissions and symbolic links in /dev"
extra_started_commands="reload"