summaryrefslogtreecommitdiffstats
path: root/polyp/esdcompat.sh.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-21 19:40:55 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-21 19:40:55 +0000
commit12949d0a65bcbc9550899a6ec7b0f504a4f571b5 (patch)
treebcef709961ca86d4d2fb7e3d215bc65277d20893 /polyp/esdcompat.sh.in
parent3e1bdacd4fcd3779141c53008b983fe78e639b30 (diff)
support for esd arguments: -spawnpid and -spawnfd
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@231 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/esdcompat.sh.in')
-rwxr-xr-xpolyp/esdcompat.sh.in17
1 files changed, 16 insertions, 1 deletions
diff --git a/polyp/esdcompat.sh.in b/polyp/esdcompat.sh.in
index 8b9cbf94..d222e1ba 100755
--- a/polyp/esdcompat.sh.in
+++ b/polyp/esdcompat.sh.in
@@ -26,9 +26,13 @@ fail() {
exit 1
}
+ARGS=""
+
for N in $(seq $#) ; do
case "$1" in
+ "")
+ ;;
-v|--version)
echo "$VERSION_STRING"
@@ -62,6 +66,16 @@ Ignored directives:
EOF
exit 0
;;
+
+ -spawnpid)
+ shift
+ ARGS="$ARGS '-Lmodule-esound-compat-spawnpid pid=$1'"
+ ;;
+
+ -spawnfd)
+ shift
+ ARGS="$ARGS '-Lmodule-esound-compat-spawnfd fd=$1'"
+ ;;
-unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous)
# Ignore these commands
@@ -70,6 +84,7 @@ EOF
-d|-r|-as|-port|-bind)
# Ignore these commands and their arguments
shift
+
;;
*)
@@ -80,4 +95,4 @@ EOF
shift
done
-exec "@POLYPAUDIO_BINARY@"
+eval "exec '@POLYPAUDIO_BINARY@'$ARGS"