summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-core/busybox/ifplugd-disable_1.0.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-core/busybox/ifplugd-disable_1.0.bb b/recipes-core/busybox/ifplugd-disable_1.0.bb
new file mode 100644
index 0000000..1910e34
--- /dev/null
+++ b/recipes-core/busybox/ifplugd-disable_1.0.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Turn off ifplugd"
+LICENSE = "GPLv2"
+PACKAGE_ARCH = "all"
+
+RDEPENDS_ifplugd-disable = "busybox-ifplugd"
+ALLOW_EMPTY_ifplugd-disable = "1"
+
+PR = "r1"
+
+
+pkg_prerm_${PN}() {
+#!/bin/bash
+sed -i 's/^ENABLED="no"/ENABLED="yes"/i' /etc/default/ifplugd
+}
+pkg_postinst_${PN}() {
+#!/bin/bash
+sed -i 's/^ENABLED="yes"/ENABLED="no"/i' /etc/default/ifplugd
+}