summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/irda-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/irda-utils')
-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() {
}
if [ ! -f /etc/sysconfig/irda ]; then
-
case `module_id` in
"HP iPAQ H2200" | "HP iPAQ HX4700" | "HTC Universal")
IRDA=yes
@@ -28,18 +27,10 @@ if [ ! -f /etc/sysconfig/irda ]; then
DISCOVERY=
;;
esac
-
- mkdir -p /etc/sysconfig
- echo "IRDA=$IRDA" > /etc/sysconfig/irda
- if [ $IRDA = "yes" ]; then
- echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda
- echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda
- echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda
- fi
+else
+ . /etc/sysconfig/irda
fi
-. /etc/sysconfig/irda
-
# Check that irda is up.
[ ${IRDA} = "no" ] && exit 0