diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-01-14 14:00:27 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2011-01-14 16:35:43 -0200 |
commit | 097294f7564ae5c613987acd341723ab69f43b2f (patch) | |
tree | a5f1fe22bb658e01e0eb3ed9adc79ddf857b96f6 /recipes/hal | |
parent | 3e299ddd4fb5a23995c71895949d2306e44e11b2 (diff) | |
download | openembedded-097294f7564ae5c613987acd341723ab69f43b2f.tar.gz |
hal: fix init script if $prefix is empty
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes/hal')
-rw-r--r-- | recipes/hal/hal.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/hal/hal.inc b/recipes/hal/hal.inc index d28436d1ba..95c93b894d 100644 --- a/recipes/hal/hal.inc +++ b/recipes/hal/hal.inc @@ -3,7 +3,7 @@ HOMEPAGE = "http://freedesktop.org/Software/hal" SECTION = "unknown" LICENSE = "GPL LGPL AFL" -INC_PR = "r10" +INC_PR = "r11" SRC_URI = "http://hal.freedesktop.org/releases/hal-${PV}.tar.gz" @@ -45,6 +45,11 @@ do_install_append() { install -d ${D}/${sysconfdir}/dbus-1/event.d install -m 0755 ${WORKDIR}/20hal ${D}/${sysconfdir}/dbus-1/event.d rm -rf ${D}/${sysconfdir}/rc.d || true + + # Handle case where prefix is empty + if [ -z "$prefix" ]; then + sed -i 's,/usr,,g' ${D}/${sysconfdir}/dbus-1/event.d/20hal + fi } # At the time the postinst runs, dbus might not be setup so only restart if running |