diff options
author | chatty | 1999-06-28 15:54:00 +0000 |
---|---|---|
committer | chatty | 1999-06-28 15:54:00 +0000 |
commit | e4531c468325407d111f7d5cf3a53604f6b596b5 (patch) | |
tree | 1e41c9de3206707374429856c46727c07fb5f275 /src/irbox.init | |
parent | 9aad9d2d3775c1173f99d420a7cadad8cc62134a (diff) | |
download | irbox-e4531c468325407d111f7d5cf3a53604f6b596b5.zip irbox-e4531c468325407d111f7d5cf3a53604f6b596b5.tar.gz irbox-e4531c468325407d111f7d5cf3a53604f6b596b5.tar.bz2 irbox-e4531c468325407d111f7d5cf3a53604f6b596b5.tar.xz |
Now handle configuration options read from file /etc/irbox.conf
Diffstat (limited to 'src/irbox.init')
-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 ;; |