diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-07-23 11:06:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:14:36 +0100 |
commit | 0b66192825633d4d7e635cd9a97a3c0da39fc765 (patch) | |
tree | e6e01e152636334ea3113146452170bc6537d185 /meta/recipes-connectivity/irda-utils | |
parent | 4485cd903e59550a33d6086fcf2b329d2b405035 (diff) | |
download | poky-0b66192825633d4d7e635cd9a97a3c0da39fc765.tar.gz |
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]
(From OE-Core rev: f88a101bc0caa7b486527f0d337406651cbaeb0d)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/irda-utils')
-rwxr-xr-x | meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init | 13 |
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 | ||
15 | if [ ! -f /etc/sysconfig/irda ]; then | 15 | if [ ! -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 | 30 | else | |
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 | ||
39 | fi | 32 | fi |
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 | ||