diff options
author | Jeff Hatch <jhatch@multitech.com> | 2019-05-08 11:00:07 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-07-03 12:35:42 -0500 |
commit | 25187804b15c00445dbeb9b3ec6e4bfddfc73015 (patch) | |
tree | bacc97c0ba8f9af339f329c20dedd192376dad9c | |
parent | 250d9c4286d9b7a64776914c1dee9af570270561 (diff) | |
download | meta-mlinux-25187804b15c00445dbeb9b3ec6e4bfddfc73015.tar.gz meta-mlinux-25187804b15c00445dbeb9b3ec6e4bfddfc73015.tar.bz2 meta-mlinux-25187804b15c00445dbeb9b3ec6e4bfddfc73015.zip |
fix both /etc/default/ifplugd and /var/config/default/ifplugd (see /etc/init.d/config script)4
-rw-r--r-- | recipes-core/busybox/ifplugd-disable_1.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/busybox/ifplugd-disable_1.0.bb b/recipes-core/busybox/ifplugd-disable_1.0.bb index efb5000..2a0dd76 100644 --- a/recipes-core/busybox/ifplugd-disable_1.0.bb +++ b/recipes-core/busybox/ifplugd-disable_1.0.bb @@ -13,4 +13,9 @@ sed -i 's/^ENABLED="no"/ENABLED="yes"/i' $D/etc/default/ifplugd } pkg_postinst_${PN}() { sed -i 's/^ENABLED="yes"/ENABLED="no"/i' $D/etc/default/ifplugd +if [ -f $D/var/config/default/ifplugd ]; then + sed -i 's/^ENABLED="yes"/ENABLED="no"/i' $D/var/config/default/ifplugd +else + cp $D/etc/default/ifplugd $D/var/config/default/ifplugd +fi } |