00001 #!/bin/sh 00002 00003 REMOTE_NAME=gi-motorola-dct2000 00004 cmd="$1" 00005 00006 case $cmd in 00007 [0-9]*) 00008 for digit in $(echo $1 | sed -e 's/./& /g'); do 00009 irsend SEND_ONCE $REMOTE_NAME $digit 00010 sleep 1 00011 # If things work OK with sleep 1, try this for faster channel changes: 00012 # sleep 0.3 00013 done 00014 ;; 00015 00016 *) 00017 irsend SEND_ONCE $REMOTE_NAME $cmd 00018 ;; 00019 esac
1.5.5