File: horgand.wrapper

package info (click to toggle)
horgand 1.14-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,104 kB
  • sloc: sh: 3,378; cpp: 3,089; makefile: 40
file content (23 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# Little script to set the audio driver of horgand
#
# Copyright (C) 2005 Free Ekanayaka <free@agnula.org>
#
# This script is licensed under the GNU GPL v2 - you can find a
# complete copy of the license under /usr/share/common-licenses/GPL-2

DRIVER="Alsa"
BINARY="/usr/lib/horgand/horgand"

if [ $(ps -C jackd| wc -l) -gt 1 ]; then
	DRIVER="Jack"
fi

cat <<EOF > ~/.Horgand
Not Connected
$DRIVER
/usr/share/horgand/Default.horeb
EOF

exec $BINARY $@