summaryrefslogtreecommitdiff
path: root/example/externchannelswitch.sh.example
diff options
context:
space:
mode:
Diffstat (limited to 'example/externchannelswitch.sh.example')
-rwxr-xr-xexample/externchannelswitch.sh.example21
1 files changed, 21 insertions, 0 deletions
diff --git a/example/externchannelswitch.sh.example b/example/externchannelswitch.sh.example
new file mode 100755
index 0000000..76a57c7
--- /dev/null
+++ b/example/externchannelswitch.sh.example
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+
+# set to true to enable debugging output
+DEBUG="true"
+
+
+declare SID="$1"
+declare VDRCHANNEL="$2"
+declare VIDEONUMBER="$3"
+declare EXTERNCHANNEL
+let "EXTERNCHANNEL = SID % 1000" #last three digits from SID without leading 0
+
+#exec dct6200 "$EXTERNCHANNEL"
+
+if test "$DEBUG" == "true"; then
+ logger -s "DEBUG pvrinput externchannelswitch: Variable SID has value \"$SID\""
+ logger -s "DEBUG pvrinput externchannelswitch: Variable VDRCHANNEL has value \"$VDRCHANNEL\""
+ logger -s "DEBUG pvrinput externchannelswitch: Variable VIDEONUMBER has value \"$VIDEONUMBER\""
+ logger -s "DEBUG pvrinput externchannelswitch: Variable EXTERNCHANNEL has value \"$EXTERNCHANNEL\""
+fi