From d9d43e03f6b9d35e33c16dba9e1b4578059a3fdf Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Wed, 8 May 2019 10:51:35 -0500 Subject: Update ifplugd-disable to also disable in /var/config/default/ifplugd --- recipes-core/busybox/ifplugd-disable_1.0.bb | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- cgit v1.2.3