summaryrefslogtreecommitdiffstats
path: root/streams
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-04 19:52:04 +0200
committermakefu <github@syntax-fehler.de>2011-08-04 19:52:04 +0200
commit49b7d9c8265fdc044020dcf6b6ca2a392777d22f (patch)
treef4108c0039c8f3f0026d58d2b24332146b66092d /streams
parente14c7902515b32ac454327cc621dba0f37bedf93 (diff)
parent6eb609420cdfe8ca08134a35ddfc72bb438433b1 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'streams')
-rw-r--r--streams/stream.db2
-rwxr-xr-xstreams/streams28
2 files changed, 28 insertions, 2 deletions
diff --git a/streams/stream.db b/streams/stream.db
index 168cc68d..6ca9a627 100644
--- a/streams/stream.db
+++ b/streams/stream.db
@@ -1,3 +1,5 @@
http://somafm.com/groovesalad.pls groove
http://deepmix.ru/deepmix128.pls deepmix
http://streams.xenim.de/radiotux.ogg radiotux
+http://bassdrive.com/v2/streams/BassDrive.pls bassdrive
+http://somafm.com/illstreet.pls illstreet
diff --git a/streams/streams b/streams/streams
index 034d68a1..c5e9e471 100755
--- a/streams/streams
+++ b/streams/streams
@@ -6,6 +6,11 @@ if [ ! `id -u` -eq "0" ]; then
exec sudo "$0" "$@"
fi
+#if [ ! `id -u` -eq "0" ]; then
+# echo "we are going sudo..."
+# exec sudo "$0" "$@"
+#fi
+
function start() {
# start the given stream von $1
REQ=$1
@@ -71,7 +76,23 @@ function list()
}
-
+function shorthelp()
+{
+ echo "start|stop|restart|status|list [audio stream]"
+}
+function longhelp()
+{
+ B=`basename $0`
+ echo -n "Usage: $B "
+ shorthelp
+ echo " get all available streams with '/$B list'
+Examples:
+ $B list
+ $B start groove
+ $B restart deepmix
+ $B status
+ $B stop"
+}
case "$1" in
@@ -92,7 +113,10 @@ case "$1" in
list)
list
;;
+ (--help)
+ shorthelp
+ ;;
*)
- echo "aidsballs"
+ longhelp
;;
esac