diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
commit | f7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch) | |
tree | 6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/runit-scripts/runitscripts/services/remotes | |
parent | 4c2a2e3504f472628285a989c7c9a76be6855f54 (diff) | |
parent | 01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff) | |
download | linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/remotes')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/remotes/run | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/run b/abs/core/runit-scripts/runitscripts/services/remotes/run index 19c6375..9fbb16e 100755 --- a/abs/core/runit-scripts/runitscripts/services/remotes/run +++ b/abs/core/runit-scripts/runitscripts/services/remotes/run @@ -7,6 +7,11 @@ export TERM=linux LOG=/tmp/remotes.log +MODPROBE="/usr/bin/modprobe" +LIRCD="/usr/bin/lircd " + +SETSERIAL="/usr/bin/setserial" + if [ -f $LOG ] then rm -f $LOG @@ -73,15 +78,15 @@ else esac #set_serial debugging - /usr/bin/setserial -va /dev/$serial_port 2>&1 >> $LOG + $SETSERIAL -va /dev/$serial_port 2>&1 >> $LOG echo '' 2>&1 >> $LOG #run set_serial command - /usr/bin/setserial -v /dev/$serial_port uart none 2>&1 >> $LOG + $SETSERIAL -v /dev/$serial_port uart none 2>&1 >> $LOG echo '' 2>&1 >> $LOG #set_serial debugging - /usr/bin/setserial -va /dev/$serial_port 2>&1 >> $LOG + $SETSERIAL -va /dev/$serial_port 2>&1 >> $LOG sleep 1 #remove lirc_serial @@ -90,8 +95,8 @@ else /usr/bin/rmmod -v lirc_dev 2>> $LOG echo "*Loading lirc_serial" 2>&1 >> $LOG - echo "/sbin/modprobe lirc_serial $FLAGS" 2>&1 >> $LOG - /sbin/modprobe -v lirc_serial $FLAGS 2>&1 >> $LOG + echo "$MODPROBE lirc_serial $FLAGS" 2>&1 >> $LOG + $MODPROBE -v lirc_serial $FLAGS 2>&1 >> $LOG echo "====== lirc modules after load ==========" >> $LOG lsmod |grep lirc >> $LOG @@ -107,7 +112,7 @@ else if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ] then - CMD="/usr/sbin/lircd -r -n --driver=commandir" + CMD="$LIRCD-r -n --driver=commandir" printhl " Using commandir" echo $CMD >>$LOG $CMD >>$LOG 2>>$LOG @@ -115,7 +120,7 @@ else elif [ x$HostBlasterType = xiguanaIR-usb -o x$ReceiverType = xiguanaIR-usb ] then sv start igdaemon - CMD="/usr/sbin/lircd -r -n --driver=iguanaIR" + CMD="$LIRCD-r -n --driver=iguanaIR" printhl " Using iguanaIR usb" echo $CMD >>$LOG $CMD >>$LOG 2>>$LOG @@ -123,7 +128,7 @@ else elif [ x$ReceiverType = "xSiliconDust_HDHR" ] then # if using the SiliconDust_HDHR as an I/R Receiver - CMD="/usr/sbin/lircd -H udp -d 5000 -n" + CMD="$LIRCD-H udp -d 5000 -n" printhl " Using SiliconDust on port 5000" echo $CMD >>$LOG $CMD >>$LOG 2>>$LOG @@ -172,7 +177,7 @@ else DEFINED_RECEIVER="False" for i in `seq 1 $num_lirc` do - CMD="/usr/sbin/lircd -r -d /dev/lirc$i --output=/var/run/lirc/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i" + CMD="$LIRCD-r -d /dev/lirc$i --output=/var/run/lirc/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i" printhl " Device $i" echo $CMD >>$LOG $CMD >>$LOG 2>>$LOG @@ -211,24 +216,24 @@ else then #start receiver #start blaster chain - CMD="/usr/sbin/lircd -r -d $IRNODE --output=/var/run/lirc/lircd1 --pidfile=/var/run/lircd1.pid --listen=8761" - LCMD="/usr/sbin/lircd -r -n -d $BLASTERNODE --output /var/run/lirc/lircd $LASTCMD" + CMD="$LIRCD-r -d $IRNODE --output=/var/run/lirc/lircd1 --pidfile=/var/run/lircd1.pid --listen=8761" + LCMD="$LIRCD-r -n -d $BLASTERNODE --output /var/run/lirc/lircd $LASTCMD" echo $CMD >>$LOG $CMD >>$LOG 2>>$LOG elif [ x$USE_BLASTER = xTrue ] then #start only the blaster - LCMD="/usr/sbin/lircd -r -n -d $BLASTERNODE --output /var/run/lirc/lircd $LASTCMD" + LCMD="$LIRCD-r -n -d $BLASTERNODE --output /var/run/lirc/lircd $LASTCMD" elif [ x$DEFINED_RECEIVER = xTrue ] then #start reciever - LCMD="/usr/sbin/lircd -r -n -d $IRNODE --output /var/run/lirc/lircd" + LCMD="$LIRCD-r -n -d $IRNODE --output /var/run/lirc/lircd" else #default case of /dev/lirc0 - LCMD="/usr/sbin/lircd -r -n -d /dev/lirc0 --output /var/run/lirc/lircd $LASTCMD" + LCMD="$LIRCD-r -n -d /dev/lirc0 --output /var/run/lirc/lircd $LASTCMD" fi echo $LASTCMD >>$LOG |