summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/mouse
diff options
context:
space:
mode:
authorWilly Tarreau <willy@wtap.(none)>2006-07-26 11:59:30 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 11:59:30 +0200
commit015a749c05281a4293ad2eade8361c3575bc0191 (patch)
tree485b632faffeb5449eeeacc5193cde5fd094aa8b /sbin/init.d/mouse
parentInitial commit (diff)
downloadinit-scripts-015a749c05281a4293ad2eade8361c3575bc0191.tar.gz
[RELEASE] init-scripts-0.1v0.1
Diffstat (limited to 'sbin/init.d/mouse')
-rwxr-xr-xsbin/init.d/mouse16
1 files changed, 16 insertions, 0 deletions
diff --git a/sbin/init.d/mouse b/sbin/init.d/mouse
new file mode 100755
index 0000000..77c9685
--- /dev/null
+++ b/sbin/init.d/mouse
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. `dirname $0`/functions
+
+option type standard_option ps2
+option device standard_option /dev/mouse
+option bin reserved_option /sbin/gpm
+option procname reserved_option gpm
+option cmdline reserved_option '$bin -t $opt_type -m $opt_device'
+option pidfile reserved_option /var/run/gpm.pid
+
+function fct_pre_stop {
+ $cmdline -k >/dev/null 2>&1
+}
+
+load_config