changeset 103:368a68c9d579

added fail safe hack
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 01:25:16 +0900
parents 49145003e6a3
children 82aac84c3665
files do-record.sh.pt1
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/do-record.sh.pt1	Mon Mar 08 01:08:47 2010 +0900
+++ b/do-record.sh.pt1	Mon Mar 08 01:25:16 2010 +0900
@@ -5,13 +5,17 @@
 echo "TUNER : $TUNER"
 echo "TYPE : $TYPE"
 echo "MODE : $MODE"
+echo "SID  : $SID"
 
 RECORDER=/usr/local/bin/recpt1
 
-#case $CHANNEL in
-#    101|102|191|192|193) SID=$CHANNEL ;;
-#    *) SID="HD" ;;
-#esac
+# fail safe
+case $CHANNEL in
+    101|102|191|192|193)
+	if [ $SID = 'hd' ]; then
+	    SID=$CHANNEL
+	fi ;;
+esac
 
 if [ ${MODE} == 0 ]; then
    # MODE=0では必ず無加工のTSを吐き出すこと