#!/bin/sh
[ $# -ne 2 ] && echo "$0 {G or B} {channel}" && exit 1


TVSCRIPT=/home/owner/bin/channel-setSerial.sh

case "${1}" in
G)
${TVSCRIPT} ground_d
break;;
B)
${TVSCRIPT} bs
break;;
*)break;;
esac

sleep 4

case "${2}" in
1)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 1
break;;
2)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 2
break;;
3)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 3
break;;
4)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 4
break;;
5)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 5
break;;
6)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 6
break;;
7)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 7
break;;
8)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 8
break;;
9)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 9
break;;
10)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 10
break;;
11)
${TVSCRIPT} 1
sleep 4
${TVSCRIPT} 11
break;;
12)
${TVSCRIPT} 11
sleep 4
${TVSCRIPT} 12
break;;
*)break;;
esac
