summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-04-15 16:01:59 -0500
committerJohn Klug <john.klug@multitech.com>2019-04-15 16:01:59 -0500
commit28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c (patch)
treef2bb77fd4a24d5be3f709e939daf70d718cf5d5d
parent4a060176a58345749e5907084cf1647f8b8cae23 (diff)
downloadmeta-mlinux-28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c.tar.gz
meta-mlinux-28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c.tar.bz2
meta-mlinux-28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c.zip
Add ifplugd disable recipe
-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
+}