diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
commit | c6000c9d9949b3326fb82f02431899ab6774b960 (patch) | |
tree | 2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /btnx/btnx | |
parent | 453f0f12918af35bd8e1e5f049841360f37d62e4 (diff) | |
download | aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz |
big cleanup
Diffstat (limited to 'btnx/btnx')
-rwxr-xr-x | btnx/btnx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/btnx/btnx b/btnx/btnx deleted file mode 100755 index 2c3534c..0000000 --- a/btnx/btnx +++ /dev/null @@ -1,52 +0,0 @@ -#! /bin/bash - -# general config -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof -o %PPID /usr/sbin/btnx` -case "$1" in - start) - stat_busy "Starting btnx mouse daemon" - modprobe uinput - [ -z "$PID" ] && /usr/sbin/btnx -b -l > /dev/null - if [ $? -gt 0 ] - then - stat_fail - else - add_daemon btnx - stat_done - fi - ;; - stop) - stat_busy "Stopping btnx mouse daemon" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm -f /var/run/btnx.pid - rm_daemon btnx - stat_done - fi - ;; - reload) - stat_busy "Reloading btnx mouse daemon configuration" - if [ "$PID" ] - then - kill -HUP $PID 2> /dev/null - stat_done - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart|reload}" - ;; -esac - -exit 0 |