plumber

Plumber – a modern approach to plumbing
git clone git://r-36.net/plumber
Log | Files | Refs | LICENSE

tvopener (330B)


      1 #!/bin/sh
      2 
      3 set -x
      4 
      5 if [ $# -lt 1 ];
      6 then
      7 	printf "usage: %s URI\n" "$(basename "$0")" >&2
      8 	exit 1
      9 fi
     10 
     11 uripart="$(printf "%s\n" "$1" | sed 's,%20, ,g' | cut -d '/' -f 3-)"
     12 case "$uripart" in
     13 ''|*[!0-9]*)
     14 	rstr="$uripart"
     15 	;;
     16 *)
     17 	rstr="-n $uripart"
     18 	;;
     19 esac
     20 
     21 if slmcc isdown;
     22 then
     23 	slmcc vdr $rstr
     24 else
     25 	vdrtv -q dsl16000 $rstr
     26 fi
     27