summaryrefslogtreecommitdiff
path: root/example/externchannelswitch.sh.example
diff options
context:
space:
mode:
authorVDR user <vdr@yavdr.gitarren.local>2010-03-14 13:15:46 +0100
committerVDR user <vdr@yavdr.gitarren.local>2010-03-14 13:15:46 +0100
commit8c00e6eb8fd0fca7f09e1091d1d07a5e0f7ca9b6 (patch)
treed48e044719599ded9e2cb722187484838e5377c2 /example/externchannelswitch.sh.example
downloadvdr-plugin-pvrinput-8c00e6eb8fd0fca7f09e1091d1d07a5e0f7ca9b6.tar.gz
vdr-plugin-pvrinput-8c00e6eb8fd0fca7f09e1091d1d07a5e0f7ca9b6.tar.bz2
init
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