[Pkg-utopia-commits] r289 - packages/experimental/hal/debian

Sjoerd Simons sjoerd at costa.debian.org
Sat Aug 27 20:42:34 UTC 2005


Author: sjoerd
Date: 2005-08-27 20:42:30 +0000 (Sat, 27 Aug 2005)
New Revision: 289

Added:
   packages/experimental/hal/debian/hal.prerm
Log:
Stop hal in prerm

Added: packages/experimental/hal/debian/hal.prerm
===================================================================
--- packages/experimental/hal/debian/hal.prerm	2005-08-27 20:32:06 UTC (rev 288)
+++ packages/experimental/hal/debian/hal.prerm	2005-08-27 20:42:30 UTC (rev 289)
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" ]; then
+    /etc/dbus-1/event.d/20hal stop || true
+    sleep 2
+    # hald seems to be very hard to kill
+    if [ -e /var/run/hal/hald.pid ]; then
+        kill -9 $(< /var/run/hal/hald.pid) || true
+        rm -f /var/run/hal/hald.pid
+    fi
+fi
+




More information about the Pkg-utopia-commits mailing list