From 28d09bf207fe1076b2a1ef78c6fa91fc2fbdc92c Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 15 Apr 2019 16:01:59 -0500 Subject: Add ifplugd disable recipe --- recipes-core/busybox/ifplugd-disable_1.0.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-core/busybox/ifplugd-disable_1.0.bb 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 +} -- cgit v1.2.3