Package: aumix-common
Version: 2.9.1-2
Severity: wishlist
Tags: patch
I'm trying to add support for the "status" action to init scripts in
Debian. Attached is a patch that does this for the aumix-common
package. It's a bit of a special case, and I'm not familiar with the
details of this package, so please use your judgement on whether this
is the right way to do it.
diff -Nru aumix-2.9.1/debian/aumix-common.aumix.init aumix-2.9.1/debian/aumix-common.aumix.init
--- aumix-2.9.1/debian/aumix-common.aumix.init 2011-09-22 18:27:37.000000000 +0300
+++ aumix-2.9.1/debian/aumix-common.aumix.init 2011-10-29 17:33:24.000000000 +0300
@@ -155,8 +155,16 @@
store && log_success_msg "done."
fi
;;
+ status)
+ if [ -f /var/lock/aumix/saved ] ; then
+ log_warning_msg "Mixer settings stored and devices muted"
+ exit 3
+ else
+ exit 0
+ fi
+ ;;
*)
- log_failure_msg "Usage: /etc/init.d/aumix {start|stop|save}"
+ log_failure_msg "Usage: /etc/init.d/aumix {start|stop|save|status}"
exit 1
;;
esac
diff -Nru aumix-2.9.1/debian/changelog aumix-2.9.1/debian/changelog
--- aumix-2.9.1/debian/changelog 2011-09-22 23:28:22.000000000 +0300
+++ aumix-2.9.1/debian/changelog 2011-10-30 21:53:23.000000000 +0200
@@ -1,3 +1,9 @@
+aumix (2.9.1-2.1) UNRELEASED; urgency=low
+
+ * Added support for "status" action in init script
+
+ -- Peter Eisentraut <[email protected]> Sun, 30 Oct 2011 21:52:57 +0200
+
aumix (2.9.1-2) unstable; urgency=low
* Removed reference to non-existing devfsd from the init script