summaryrefslogtreecommitdiff
path: root/recipes-core/busybox/ifplugd-disable_1.0.bb
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2019-05-08 10:51:35 -0500
committerJohn Klug <john.klug@multitech.com>2019-07-03 17:08:20 -0500
commitd9d43e03f6b9d35e33c16dba9e1b4578059a3fdf (patch)
treefa0015742039669e00e1d6f0c1ba46a01a06ddce /recipes-core/busybox/ifplugd-disable_1.0.bb
parentf6ecb6d73ddef2cac8ec1f10334d994ab54a79ed (diff)
downloadmeta-mlinux-d9d43e03f6b9d35e33c16dba9e1b4578059a3fdf.tar.gz
meta-mlinux-d9d43e03f6b9d35e33c16dba9e1b4578059a3fdf.tar.bz2
meta-mlinux-d9d43e03f6b9d35e33c16dba9e1b4578059a3fdf.zip
Update ifplugd-disable to also disable in /var/config/default/ifplugd
Diffstat (limited to 'recipes-core/busybox/ifplugd-disable_1.0.bb')
-rw-r--r--recipes-core/busybox/ifplugd-disable_1.0.bb5
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 09f866d..3d75d2d 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${sysconfdir}/default/ifplugd
}
pkg_postinst_${PN}() {
sed -i 's/^ENABLED="yes"/ENABLED="no"/i' $D${sysconfdir}/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
}