diff options
author | John Klug <john.klug@multitech.com> | 2019-04-15 16:01:59 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-04-15 16:01:59 -0500 |
commit | 28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c (patch) | |
tree | f2bb77fd4a24d5be3f709e939daf70d718cf5d5d | |
parent | 4a060176a58345749e5907084cf1647f8b8cae23 (diff) | |
download | meta-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.bb | 18 |
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 +} |