From aa12d00fa943d9e332638acc03ef32b1cc970d58 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 4 Jan 2012 23:25:57 -0600 Subject: runit-scripts: lircd run: change dvico detection to allow names like dvico-mine to work --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runitscripts/services/lircd/run | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index 2e0f57c..6ef0e51 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=2.1.1 -pkgrel=43 +pkgrel=44 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runitscripts/services/lircd/run b/abs/core/runit-scripts/runitscripts/services/lircd/run index 480a884..3993795 100755 --- a/abs/core/runit-scripts/runitscripts/services/lircd/run +++ b/abs/core/runit-scripts/runitscripts/services/lircd/run @@ -43,7 +43,7 @@ else [ -e /var/run/lirc ] || mkdir -p /var/run/lirc function dvico_detect { - if [ x$Remotetype = "xdvico" ] || [ x$Remotetype = "xDvico-Dual-Digital4-rev2" ] + if [[ x$Remotetype = xdvico* ]] || [ x$Remotetype = "xDvico-Dual-Digital4-rev2" ] then RunDvico=true else @@ -127,7 +127,7 @@ else if [ $RunDvico = "true" ] then - if [ x$Remotetype = "xdvico" ] + if [[ x$Remotetype = xdvico* ]] then LCMD="/usr/sbin/lircd -r -n -d /dev/usb/dvicoIR --driver=dvico --output /var/run/lirc/lircd" else -- cgit v0.12