diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/irbox.init | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/irbox.init b/src/irbox.init index e1e383a..1fa91c4 100755 --- a/src/irbox.init +++ b/src/irbox.init @@ -13,11 +13,33 @@ # Source function library. . /etc/rc.d/init.d/functions +. /etc/irbox.conf + +if [ -z $BUS ]; then + busopt= +else + busopt="-b $BUS" +fi + +if [ -z $DEVICE ]; then + devopt= +else + devopt="-d $DEVICE" +fi + +if [ -z $APPNAME ]; then + appopt= +else + appopt="-n $APPNAME" +fi + + + # See how we were called. case "$1" in start) echo -n "Infra-red Ivy driver... " - daemon irbox -b 143.196.53,143.196.1:2019 & + daemon irbox $busopt $devopt $appopt & echo touch /var/lock/subsys/irbox ;; |