summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/packages/hal/hal_0.5.8.1.bb21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/packages/hal/hal_0.5.8.1.bb b/meta/packages/hal/hal_0.5.8.1.bb
index 4b2196f875..0ac92bfed2 100644
--- a/meta/packages/hal/hal_0.5.8.1.bb
+++ b/meta/packages/hal/hal_0.5.8.1.bb
@@ -31,6 +31,27 @@ do_stage() {
31 install -m 755 libhal-storage/.libs/libhal-storage.so.1.0.0 ${STAGING_LIBDIR}/libhal-storage.so 31 install -m 755 libhal-storage/.libs/libhal-storage.so.1.0.0 ${STAGING_LIBDIR}/libhal-storage.so
32} 32}
33 33
34# At the time the postinst runs, dbus might not be setup so only restart if running
35pkg_postinst_hal () {
36 # can't do this offline
37 if [ "x$D" != "x" ]; then
38 exit 1
39 fi
40 grep haldaemon /etc/group || addgroup haldaemon
41 grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL
42
43 DBUSPID=`pidof dbus-daemon`
44
45 if [ "x$DBUSPID" != "x" ]; then
46 /etc/init.d/dbus-1 force-reload
47 fi
48}
49
50pkg_postrm_hal () {
51 deluser haldaemon || true
52 delgroup haldaemon || true
53}
54
34#PACKAGES += "hal-device-manager" 55#PACKAGES += "hal-device-manager"
35 56
36#FILES_hal-device-manager = " \ 57#FILES_hal-device-manager = " \