summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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
}