diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2013-06-20 08:26:12 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2013-06-20 08:26:12 -0300 |
commit | a3b91db3514e14eee42daf6044bb2ee5b31daaec (patch) | |
tree | 27ecb8e2291258d37aab5b5fdb79bd2b478eb830 /games/qtsixa/sixad.patch | |
parent | 5200be1276940197d900cc674457097b7b5360e6 (diff) |
games/qtsixa: Added (Sixaxis Joystick Manager)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/qtsixa/sixad.patch')
-rw-r--r-- | games/qtsixa/sixad.patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/games/qtsixa/sixad.patch b/games/qtsixa/sixad.patch new file mode 100644 index 0000000000000..441559fe84a2e --- /dev/null +++ b/games/qtsixa/sixad.patch @@ -0,0 +1,83 @@ +--- sixad/sixad.orig 2011-10-12 18:39:33.000000000 +0200 ++++ sixad/sixad 2013-03-30 19:15:48.576679323 +0100 +@@ -48,13 +48,8 @@ + } + + bt_start () { +-$SUDO rm -f /tmp/.sixad-dbus-blocker.pid +-env sleep 1 +- +-if [ -f /lib/udev/rules.d/97-bluetooth.rules ]; then +- $SUDO /usr/sbin/bluetoothd --udev +-elif [ -f /etc/rc.d/bluetooth ]; then +- $SUDO /etc/rc.d/bluetooth start ++if [ -f /etc/rc.d/rc.bluetooth ]; then ++ $SUDO /etc/rc.d/rc.bluetooth start + else + $SUDO /etc/init.d/bluetooth start + fi +@@ -62,10 +57,12 @@ + + bt_stop() { + if (bluetoothd_running_check); then +- $SUDO pkill -KILL bluetoothd ++ if [ -f /etc/rc.d/rc.bluetooth ]; then ++ $SUDO /etc/rc.d/rc.bluetooth stop ++ else ++ $SUDO /etc/init.d/bluetooth stop ++ fi + fi +- +-$SUDO /usr/sbin/sixad-dbus-blocker & + } + + case $1 in +@@ -108,38 +105,6 @@ + bt_start + ;; + +- --boot-yes) +-# ArchLinux +-if [ -f /etc/arch-release ]; then +- $SUDO sed '/DAEMONS=/ s/)/ sixad)/g' -i /etc/rc.conf +-# Gentoo +-elif [ -f /etc/gentoo-release ]; then +- $SUDO rc-update add sixad +-# Debian (default) +-else +- if [ -f /etc/rc2.d/S90sixad ]; then true; else $SUDO ln -s /etc/init.d/sixad /etc/rc2.d/S90sixad; fi +- if [ -f /etc/rc3.d/S90sixad ]; then true; else $SUDO ln -s /etc/init.d/sixad /etc/rc3.d/S90sixad; fi +- if [ -f /etc/rc4.d/S90sixad ]; then true; else $SUDO ln -s /etc/init.d/sixad /etc/rc4.d/S90sixad; fi +- if [ -f /etc/rc5.d/S90sixad ]; then true; else $SUDO ln -s /etc/init.d/sixad /etc/rc5.d/S90sixad; fi +-fi +- ;; +- +- --boot-no) +-# ArchLinux +-if [ -f /etc/arch-release ]; then +- $SUDO sed "s/ sixad//" -i /etc/rc.conf +-# Gentoo +-elif [ -f /etc/gentoo-release ]; then +- $SUDO rc-update delete sixad +-# Debian (default) +-else +- if [ -f /etc/rc2.d/S90sixad ]; then $SUDO rm /etc/rc2.d/S90sixad; fi +- if [ -f /etc/rc3.d/S90sixad ]; then $SUDO rm /etc/rc3.d/S90sixad; fi +- if [ -f /etc/rc4.d/S90sixad ]; then $SUDO rm /etc/rc4.d/S90sixad; fi +- if [ -f /etc/rc5.d/S90sixad ]; then $SUDO rm /etc/rc5.d/S90sixad; fi +-fi +- ;; +- + --help|-help|help|-h) + echo "[Qt]SixA Daemon" + $0 +@@ -162,9 +127,6 @@ + + -r, --restore Restore regular bluetooth + +- --boot-yes Auto-starts sixad at boot time +- --boot-no Does not auto-start sixad at boot time +- + You can also check: sixad-raw, sixad-notify" + ;; + |