Debian Codegraph @

debian/horgand.wrapper

raw
1 #!/bin/sh
2 #
3 # Little script to set the audio driver of horgand
4 #
5 # Copyright (C) 2005 Free Ekanayaka <[email protected]>
6 #
7 # This script is licensed under the GNU GPL v2 - you can find a
8 # complete copy of the license under /usr/share/common-licenses/GPL-2
9
10 DRIVER="Alsa"
11 BINARY="/usr/lib/horgand/horgand"
12
13 if [ $(ps -C jackd| wc -l) -gt 1 ]; then
14 DRIVER="Jack"
15 fi
16
17 cat <<EOF > ~/.Horgand
18 Not Connected
19 $DRIVER
20 /usr/share/horgand/Default.horeb
21 EOF
22
23 exec $BINARY $@