summaryrefslogtreecommitdiff
path: root/recipes-core/busybox/ifplugd-disable_1.0.bb
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2019-04-23 09:59:43 -0500
committerJohn Klug <john.klug@multitech.com>2019-07-03 17:08:20 -0500
commit8abdb6825e68df6d93ed2b998e5d27bf4a66eb8d (patch)
treeeb1c966e6089182d2b86f4f12f31b166d555d899 /recipes-core/busybox/ifplugd-disable_1.0.bb
parent34a7c1a1790b9fb15615ae95c2436c1b9765fedb (diff)
downloadmeta-mlinux-8abdb6825e68df6d93ed2b998e5d27bf4a66eb8d.tar.gz
meta-mlinux-8abdb6825e68df6d93ed2b998e5d27bf4a66eb8d.tar.bz2
meta-mlinux-8abdb6825e68df6d93ed2b998e5d27bf4a66eb8d.zip
Add ifplugd-disable_1.0.bb to Linux4
Diffstat (limited to 'recipes-core/busybox/ifplugd-disable_1.0.bb')
-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..b280b93
--- /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' $D${sysconfdir}/default/ifplugd
+}
+pkg_postinst_${PN}() {
+#!/bin/bash
+sed -i 's/^ENABLED="yes"/ENABLED="no"/i' $D${sysconfdir}/default/ifplugd
+}