PKGBUILDs/alarm/mouse-emul-git/rc-d-mouse-emul

34 lines
540 B
Text
Raw Normal View History

2011-06-18 10:21:23 +00:00
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
[ -f /etc/conf.d/mouse-emul ] && . /etc/conf.d/mouse-emul
function call_mouseemul() {
echo "foo"
}
case "$1" in
start)
stat_busy "Starting mouse-emul"
/usr/bin/mouse-emul $MOUSE_DAEMON_ARGS&
2011-06-18 10:21:23 +00:00
add_daemon mouse-emul
stat_done
;;
stop)
stat_busy "Stopping mouse-emul"
killall mouse-emul
rm_daemon mouse-emul
stat_done
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0