]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev: fix init script for the location of udevd
authorSaul Wold <sgw@linux.intel.com>
Tue, 9 Apr 2013 16:08:50 +0000 (09:08 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Apr 2013 17:08:24 +0000 (18:08 +0100)
Ensure we can update the script base don the location of the udevd installation

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev.inc
meta/recipes-core/udev/udev/init
meta/recipes-core/udev/udev/udev-cache

index c4d2ce4c7d2ae5fea4fdbbc6e61b9b3ded42a75d..d02545894756e436da2c9b90747d679175803765 100644 (file)
@@ -79,6 +79,8 @@ do_install_append () {
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
        install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
+       sed -i s%@UDEVD@%${base_sbindir}/udev/udevd% ${D}${sysconfdir}/init.d/udev
+       sed -i s%@UDEVD@%${base_sbindir}/udev/udevd% ${D}${sysconfdir}/init.d/udev-cache
 
        install -d ${D}${sysconfdir}/default
        install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
index 95d2672be89a2fa4c7d3c2cdd4d5a8f2efc3e3ac..37b52312e2417f4a251e99fd6e32796831a9e8b8 100644 (file)
@@ -15,7 +15,7 @@ export TZ=/etc/localtime
 
 [ -d /sys/class ] || exit 1
 [ -r /proc/mounts ] || exit 1
-[ -x /lib/udev/udevd ] || exit 1
+[ -x @UDEVD@ ] || exit 1
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
@@ -71,7 +71,7 @@ case "$1" in
 
     # trigger the sorted events
     echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
-    /lib/udev/udevd -d
+    @UDEVD@ -d
 
     /usr/bin/udevadm control --env=STARTUP=1
     if [ "$not_first_boot" != "" ];then
index 0f3d7cd3f3b7c1259deda3fa7ce4976cb4218d95..01fec6e96e62d896e9106922d100cba23c246dea 100644 (file)
@@ -12,7 +12,7 @@
 export TZ=/etc/localtime
 
 [ -r /proc/mounts ] || exit 1
-[ -x /lib/udev/udevd ] || exit 1
+[ -x @UDEVD@ ] || exit 1
 [ -d /sys/class ] || exit 1
 
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache