diff options
author | root <root@krebs> | 2011-08-04 02:32:37 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-08-04 02:32:37 +0200 |
commit | ca5022ea8e6897412e882106b62792abc119116c (patch) | |
tree | 946c24d6bccd32978594f90f946d1bc2ec8febb9 /streams | |
parent | f892f66a7ac44afc92234cb8185415afd70606d5 (diff) |
added help for streams tool
Diffstat (limited to 'streams')
-rwxr-xr-x | streams/streams | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/streams/streams b/streams/streams index a8408b4a..eb1e6674 100755 --- a/streams/streams +++ b/streams/streams @@ -2,6 +2,11 @@ HERE=$(dirname $(readlink -f $0)) URLS=`cat $HERE/stream.db` +#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 @@ -43,7 +48,23 @@ function list() } - +function shorthelp() +{ + echo "start|stop|restart|status|list [audio stream]" +} +function longhelp() +{ + B=`basename $0` + echo -n "Usage: $B " + shorthelp + echo "[32;1m get all available streams with [31;1;4m'/$B list'[m +Examples: + $B list + $B start groove + $B restart deepmix + $B status + $B stop" +} case "$1" in @@ -69,7 +90,10 @@ case "$1" in list) list ;; + (--help) + shorthelp + ;; *) - echo "aidsballs" + longhelp ;; esac |