Package: gpm Version: 1.20.4-3.2 Severity: wishlist Tags: patch
Here is a patch to support the "status" action in the init.d script.
diff -u gpm-1.20.4/debian/gpm.init gpm-1.20.4/debian/gpm.init --- gpm-1.20.4/debian/gpm.init +++ gpm-1.20.4/debian/gpm.init @@ -21,7 +21,7 @@ . /lib/lsb/init-functions -if [ "$(id -u)" != "0" ] +if [ "$(id -u)" != "0" ] && [ "$1" != status ] then log_failure_msg "You must be root to start, stop or restart gpm." exit 1 @@ -93,8 +93,11 @@ gpm_stop && sleep 3 gpm_start || exit 1 ;; + status) + status_of_proc $GPM gpm && exit 0 || exit $? + ;; *) - echo "Usage: /etc/init.d/gpm {start|stop|restart|force-reload|strace}" + echo "Usage: /etc/init.d/gpm {start|stop|restart|force-reload|strace|status}" exit 1 esac diff -u gpm-1.20.4/debian/control gpm-1.20.4/debian/control --- gpm-1.20.4/debian/control +++ gpm-1.20.4/debian/control @@ -14,7 +14,7 @@ Priority: optional Section: misc Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, debianutils (>= 1.7), ucf (>= 0.28), lsb-base +Depends: ${shlibs:Depends}, ${misc:Depends}, debianutils (>= 1.7), ucf (>= 0.28), lsb-base (>= 3.2-13) Conflicts: libgpmg1 Description: General Purpose Mouse interface This package provides a daemon that captures mouse events when the system