summaryrefslogtreecommitdiff
path: root/games/qtsixa/sixad-init.patch
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2013-06-20 08:26:12 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2013-06-20 08:26:12 -0300
commita3b91db3514e14eee42daf6044bb2ee5b31daaec (patch)
tree27ecb8e2291258d37aab5b5fdb79bd2b478eb830 /games/qtsixa/sixad-init.patch
parent5200be1276940197d900cc674457097b7b5360e6 (diff)
downloadslackbuilds-a3b91db3514e14eee42daf6044bb2ee5b31daaec.tar.gz
games/qtsixa: Added (Sixaxis Joystick Manager)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/qtsixa/sixad-init.patch')
-rw-r--r--games/qtsixa/sixad-init.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/games/qtsixa/sixad-init.patch b/games/qtsixa/sixad-init.patch
new file mode 100644
index 0000000000..51ae0b11ff
--- /dev/null
+++ b/games/qtsixa/sixad-init.patch
@@ -0,0 +1,52 @@
+--- sixad/sixad.init.orig 2013-03-30 18:09:41.713986598 +0100
++++ sixad/sixad.init 2013-03-30 18:11:19.787352424 +0100
+@@ -19,40 +19,37 @@
+ ps -e | grep sixad-bin > /dev/null
+ }
+
+-. /lib/lsb/init-functions
+-
+ case "$1" in
+ start)
+ if (sixad_already_running_check "$1"); then
+- log_warning_msg "sixad is already running"
++ echo "sixad is already running"
++ exit 1
+ else
+ {
+- log_daemon_msg "Starting sixad"
++ echo "Starting sixad"
+ $DAEMON --start &>>/var/log/sixad &
+- log_end_msg 0
++ exit 0
+ }
+ fi
+ ;;
+ stop)
+ if (sixad_already_running_check "$1"); then
+ {
+- log_daemon_msg "Stopping sixad"
++ echo "Stopping sixad"
+ $DAEMON --stop || true
+- log_end_msg 0
++ exit 0
+ }
+ else
+- log_warning_msg "sixad is not running"
++ echo "sixad is not running"
++ exit 1
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+- status)
+- status_of_proc "sixad-bin" "sixad" && exit 0 || exit $?
+- ;;
+ *)
+- echo "Usage: /etc/init.d/sixad {start|stop|restart|status}" >&2
++ echo "Usage: /etc/rc.d/rc.sixad {start|stop|restart}" >&2
+ exit 1
+ ;;
+ esac