contrib/gpm/gpm.rc

22 lines
355 B
Plaintext
Raw Normal View History

2008-01-02 07:04:33 +01:00
#!/bin/sh
#
# /etc/rc.d/gpm: start/stop console mouse
#
case $1 in
start)
/usr/sbin/gpm -m /dev/input/mouse0 -t ps2
;;
stop)
pkill -f 'gpm -m /dev/input/mouse0'
;;
restart)
pkill -HUP -f 'gpm -m /dev/input/mouse0'
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file