summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init')
-rwxr-xr-xmeta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init13
1 files changed, 2 insertions, 11 deletions
diff --git a/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init b/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
index 63750f187c..14efb94459 100755
--- a/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
+++ b/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
@@ -13,7 +13,6 @@ module_id() {
13} 13}
14 14
15if [ ! -f /etc/sysconfig/irda ]; then 15if [ ! -f /etc/sysconfig/irda ]; then
16
17 case `module_id` in 16 case `module_id` in
18 "HP iPAQ H2200" | "HP iPAQ HX4700" | "HTC Universal") 17 "HP iPAQ H2200" | "HP iPAQ HX4700" | "HTC Universal")
19 IRDA=yes 18 IRDA=yes
@@ -28,18 +27,10 @@ if [ ! -f /etc/sysconfig/irda ]; then
28 DISCOVERY= 27 DISCOVERY=
29 ;; 28 ;;
30 esac 29 esac
31 30else
32 mkdir -p /etc/sysconfig 31 . /etc/sysconfig/irda
33 echo "IRDA=$IRDA" > /etc/sysconfig/irda
34 if [ $IRDA = "yes" ]; then
35 echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda
36 echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda
37 echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda
38 fi
39fi 32fi
40 33
41. /etc/sysconfig/irda
42
43# Check that irda is up. 34# Check that irda is up.
44[ ${IRDA} = "no" ] && exit 0 35[ ${IRDA} = "no" ] && exit 0
45 36