[Pkg-utopia-commits] r179 - packages/hal/trunk/debian

Sjoerd Simons sjoerd@costa.debian.org
Tue, 08 Feb 2005 17:01:06 +0100


Author: sjoerd
Date: 2005-02-08 17:01:05 +0100 (Tue, 08 Feb 2005)
New Revision: 179

Modified:
   packages/hal/trunk/debian/changelog
   packages/hal/trunk/debian/hal.init.dbus
Log:
Show a nice friendly message when trying to start hal with an unsupported kernel

Modified: packages/hal/trunk/debian/changelog
===================================================================
--- packages/hal/trunk/debian/changelog	2005-02-08 15:40:53 UTC (rev 178)
+++ packages/hal/trunk/debian/changelog	2005-02-08 16:01:05 UTC (rev 179)
@@ -2,8 +2,11 @@
 
   * debian/patches/storage-policy-debian.patch
     + Updated. Enable the quiet option for vfat volumes (Closes: #292661)
+  * debian/hal.dbus.init
+    + Show a warning message when trying to start with an unsupported kernel
+      (Closes: #292644) 
 
- -- Sjoerd Simons <sjoerd@debian.org>  Tue,  8 Feb 2005 16:23:50 +0100
+ -- Sjoerd Simons <sjoerd@debian.org>  Tue,  8 Feb 2005 16:58:24 +0100
 
 hal (0.4.7-1) unstable; urgency=medium
 

Modified: packages/hal/trunk/debian/hal.init.dbus
===================================================================
--- packages/hal/trunk/debian/hal.init.dbus	2005-02-08 15:40:53 UTC (rev 178)
+++ packages/hal/trunk/debian/hal.init.dbus	2005-02-08 16:01:05 UTC (rev 179)
@@ -44,6 +44,19 @@
 	echo "$NAME."
 }
 
+supported_kernel() {
+  case "$(uname -r)" in
+    2.6.*) return 0
+      ;;
+  esac
+  return 1
+}
+
+if ! supported_kernel; then
+   echo "Hal requires a 2.6 kernel to work. Not started."
+   exit 0
+fi
+
 case "$1" in
   start)
     do_start