diff options
author | William Hubbs <williamh@gentoo.org> | 2013-01-08 14:00:38 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2013-01-08 14:00:38 -0600 |
commit | 9623860af69273675697087a6834c2a37d7ef0c1 (patch) | |
tree | e6470a01f05530d8da8a8498edfddc5aff3f57c5 /init.d | |
parent | update copyright notices (diff) | |
download | udev-gentoo-scripts-9623860af69273675697087a6834c2a37d7ef0c1.tar.gz udev-gentoo-scripts-9623860af69273675697087a6834c2a37d7ef0c1.tar.bz2 udev-gentoo-scripts-9623860af69273675697087a6834c2a37d7ef0c1.zip |
udev: start udev from /lib/systemd if it exists there.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/udev | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/init.d/udev b/init.d/udev index e04001a..3459203 100644 --- a/init.d/udev +++ b/init.d/udev @@ -90,10 +90,14 @@ start_pre() command_args="${command_args} --debug 2> /run/udevdebug.log" fi - if [ -x /sbin/udevd ]; then - command=/sbin/udevd - else - command=/usr/lib/systemd/systemd-udevd + bins="/sbin/udevd /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd" + for f in ${bins}; do + if [ -x "$f" ]; then + command="$f" + fi + done + if [ -n "$command" ]; then + command=/lib/systemd/systemd-udevd fi return 0 } |