Package: apmd
Version: 3.2.2-12
Severity: wishlist
Tags: patch

Here is a patch to support the "status" action in the init.d script.
diff -u apmd-3.2.2/debian/apmd.init apmd-3.2.2/debian/apmd.init
--- apmd-3.2.2/debian/apmd.init
+++ apmd-3.2.2/debian/apmd.init
@@ -64,8 +64,12 @@
     "${0}" stop
     "${0}" start
     ;;
+("status")
+    status_of_proc $APMD_BIN apmd
+    exit $?
+    ;;
 (*)
-    log_success_msg "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}" >&2
+    log_success_msg "Usage: /etc/init.d/apmd {start|stop|restart|force-reload|status}" >&2
     exit 3
     ;;
 esac
diff -u apmd-3.2.2/debian/control apmd-3.2.2/debian/control
--- apmd-3.2.2/debian/control
+++ apmd-3.2.2/debian/control
@@ -9,7 +9,7 @@
 Package: apmd
 Section: admin
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.2.9) | debconf-2.0, powermgmt-base, lsb-base (>= 1.3-9ubuntu3)
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.2.9) | debconf-2.0, powermgmt-base, lsb-base (>= 3.2-13)
 Suggests: xapm
 Description: Utilities for Advanced Power Management (APM)
  On laptop computers, the Advanced Power Management (APM) support 

Reply via email to