diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-01 04:57:50 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-01 04:57:50 (GMT) |
commit | d615d8fb4dd78b2e51708b321ad77b6304458bfd (patch) | |
tree | ee1585afa44494632f0ebbee7c11e8c6ddf4fb52 /abs/mv-core/runit-scripts-mv/runitscripts | |
parent | e4e922e8206bce66217e08b678b10465036dd44c (diff) | |
parent | 982eaa1f1285ed3cb1022ec9520d1d6387b62e64 (diff) | |
download | linhes_pkgbuild-d615d8fb4dd78b2e51708b321ad77b6304458bfd.zip linhes_pkgbuild-d615d8fb4dd78b2e51708b321ad77b6304458bfd.tar.gz linhes_pkgbuild-d615d8fb4dd78b2e51708b321ad77b6304458bfd.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts')
3 files changed, 17 insertions, 5 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/finish b/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/finish index 3545b07..754bca1 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/finish +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/finish @@ -1,12 +1,12 @@ #!/bin/bash -killall -9 lircd +killall -9 lircd 2>/dev/null rm -f /var/run/lirc*.pid +[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime touch /etc/sv/lircd/.runtime/`date +%s` numfiles=`/usr/bin/file_time_offset.py -s4 -d/etc/sv/lircd/.runtime ` if [ $numfiles -gt 3 ] then - rm -f /etc/sv/lircd/.runtime/* - ls -la /etc/sv/lircd/.runtime/* + rm -f /etc/sv/lircd/.runtime/* 2>/dev/null sv stop lircd echo "lircd is not able to start, disabling it" fi diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/run index 4457b37..0adfdc1 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/lircd/run @@ -2,6 +2,17 @@ exec 2>&1 run_lircd2=false . /etc/systemconfig +[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime + +function dvico_detect { + + + if [ x$Remotetype = "dvico" ] + then + DEVICE="/dev/usb/hiddev0" + fi +} + function imon_detect { if [ -e /dev/lirc_imon ] then @@ -27,6 +38,7 @@ case $ReceiverType in DEVICE=`ls /dev/lirc[0-9] 2>/dev/null |sort |sed '/./,$!d'|head -n 1 ` imon_detect + dvico_detect ;; esac diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run index 97302f1..65e551c 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run @@ -1,3 +1,3 @@ #!/bin/sh -ntpdate pool.ntp.org -exec ntpd -n -p /var/run/ntpd.pid +/usr/bin/ntpdate pool.ntp.org +exec /usr/bin/ntpd -n -p /var/run/ntpd.pid |