nsbin/gpm
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

33 lines
518 B
Bash

#! /bin/sh
# Copyright (c) 1995-1998 S.u.S.E. GmbH Fuerth, Germany.
#
# Author:
#
# /sbin/init.d/gpm
#
# and symbolic its link
#
# /sbin/rcgpm
#
### BEGIN INIT INFO
case "$1" in
start)
gpm -m /dev/misc/psaux -t ps2
;;
stop)
killall -TERM gpm
;;
restart|reload)
$0 stop && $0 start
;;
status)
echo -n "Checking for console mouse support (gpm): "
checkproc /usr/sbin/gpm && echo OK || echo No process
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac
rc_exit