aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstream-audio.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/stream-audio.sh b/stream-audio.sh
new file mode 100755
index 0000000..1ae7772
--- /dev/null
+++ b/stream-audio.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+read -p "User: " user
+read -p "Target: " target
+if [ "x${user}" != "x" ]; then
+ ssh -L "4713:127.0.0.1:4713" "${user}@${target}" -o "ExitOnForwardFailure yes"
+ export PULSE_SERVER="127.0.0.1"
+else
+ export PULSE_SERVER="${target}"
+fi
+$*