summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-07-23 11:06:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:14:15 +0100
commitf88a101bc0caa7b486527f0d337406651cbaeb0d (patch)
tree71dc1c964e40ce50a3aea6100e90672baf5f8bf3 /meta/recipes-connectivity
parent742440441222e0627abbdd3eb2ee16401e8f4adf (diff)
downloadopenembedded-core-f88a101bc0caa7b486527f0d337406651cbaeb0d.tar.gz
openembedded-core-f88a101bc0caa7b486527f0d337406651cbaeb0d.tar.bz2
openembedded-core-f88a101bc0caa7b486527f0d337406651cbaeb0d.zip
irda-utils: fix for read-only rootfs
The init script for irda writes configuration items to /etc/sysconfig/irda if that file is not available in system. But it's actually not necessary, the behavior doesn't change whether the init script writes to the file or not. Considering it issues error messages in case of a read-only rootfs, I delete the writing process. [YOCTO #4103] [YOCTO #4886] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-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