From da4e4031e6af413d2d4bd400c8a66a5bdc36ea02 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Sun, 14 Mar 2010 16:43:41 +0100 Subject: add frequency as parameter to externchannelswitch.sh This is possibly needed, because the SID now have a more important meaning. It is updated from the vdr in relation to the PAT/PMT so it's not a good idea to store important values there. Use the frequency. --- example/externchannelswitch.sh.example | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example') diff --git a/example/externchannelswitch.sh.example b/example/externchannelswitch.sh.example index 76a57c7..5fe9117 100755 --- a/example/externchannelswitch.sh.example +++ b/example/externchannelswitch.sh.example @@ -8,6 +8,7 @@ DEBUG="true" declare SID="$1" declare VDRCHANNEL="$2" declare VIDEONUMBER="$3" +declare FREQUENCY="$4" declare EXTERNCHANNEL let "EXTERNCHANNEL = SID % 1000" #last three digits from SID without leading 0 @@ -17,5 +18,6 @@ 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 FREQUENCY has value \"$FREQUENCY\"" logger -s "DEBUG pvrinput externchannelswitch: Variable EXTERNCHANNEL has value \"$EXTERNCHANNEL\"" fi -- cgit v1.2.3