From cbbcbb9eab5ba1f1caaf31f5a838b45c52b17685 Mon Sep 17 00:00:00 2001 From: Raymond Danks Date: Tue, 18 Apr 2006 01:33:13 +0000 Subject: gpm: Add gpm init script --- packages/gpm/gpm-1.20.1/init | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/gpm/gpm-1.20.1/init (limited to 'packages/gpm/gpm-1.20.1/init') diff --git a/packages/gpm/gpm-1.20.1/init b/packages/gpm/gpm-1.20.1/init new file mode 100644 index 0000000000..bb6e4a3f55 --- /dev/null +++ b/packages/gpm/gpm-1.20.1/init @@ -0,0 +1,30 @@ +#! /bin/sh i-e + +# Grab the common functions +. /etc/init.d/functions + +# FIXME: +# Add a configuration file for GPM here + +test -x /bin/gpm || exit 0 + +case "$1" in + start) + if [ ! -p /dev/gpmdata ]; then + mkfifo /dev/gpmdata + fi + + action "Starting GPM:" start-stop-daemon -S -x /bin/gpm -- -R -m /dev/mouse -t imps2 + ;; + stop) + action "Stopping GPM:" start-stop-daemon -K -x /bin/gpm + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + usage /etc/init.d/gpm +esac + +exit 0 -- cgit v1.2.3