Package: sane-utils
Version: 1.0.19-26
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: initd-status-support
Here is a patch to support the "status" action in the init.d script.
diff -u sane-backends-1.0.20/debian/sane-utils.saned.init sane-backends-1.0.20/debian/sane-utils.saned.init
--- sane-backends-1.0.20/debian/sane-utils.saned.init
+++ sane-backends-1.0.20/debian/sane-utils.saned.init
@@ -23,6 +23,8 @@
RUN=no
RUN_AS_USER=saned
+. /lib/lsb/init-functions
+
# Include saned defaults if available
if [ -f /etc/default/saned ] ; then
. /etc/default/saned
@@ -66,9 +68,12 @@
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
+ status)
+ status_of_proc $DAEMON $NAME
+ ;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac
diff -u sane-backends-1.0.20/debian/control sane-backends-1.0.20/debian/control
--- sane-backends-1.0.20/debian/control
+++ sane-backends-1.0.20/debian/control
@@ -9,7 +9,7 @@
Package: sane-utils
Section: graphics
Architecture: any
-Depends: adduser (>= 3.47), update-inetd (>= 4.31), ${shlibs:Depends}, ${misc:Depends}
+Depends: adduser (>= 3.47), lsb-base (>= 3.2-13), update-inetd (>= 4.31), ${shlibs:Depends}, ${misc:Depends}
Recommends: avahi-daemon
Suggests: unpaper
Replaces: libsane (<< 1.0.11-4)