summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2013-01-08 15:58:29 -0600
committerWilliam Hubbs <williamh@gentoo.org>2013-01-08 15:58:29 -0600
commit6a50f98947ea9b7173b2cbefec15e796e5b791fc (patch)
treea81a37ed1ef7e946dfaee603b73ea9f080230c9c /init.d
parentudev: start udev from /lib/systemd if it exists there. (diff)
downloadudev-gentoo-scripts-6a50f98947ea9b7173b2cbefec15e796e5b791fc.tar.gz
udev-gentoo-scripts-6a50f98947ea9b7173b2cbefec15e796e5b791fc.tar.bz2
udev-gentoo-scripts-6a50f98947ea9b7173b2cbefec15e796e5b791fc.zip
udev: return error if unable to find executable
Diffstat (limited to 'init.d')
-rw-r--r--init.d/udev5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.d/udev b/init.d/udev
index 3459203..10adca2 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -96,8 +96,9 @@ start_pre()
command="$f"
fi
done
- if [ -n "$command" ]; then
- command=/lib/systemd/systemd-udevd
+ if [ -z "$command" ]; then
+ eerror "Unable to find udev executable."
+ return 1
fi
return 0
}