diff mbox

[5/7] busybox/udhcpd: Added installation of sysvinit script

Message ID 632874e7773ff72f8f2fbb5d383177a30d330c9b.1411365801.git.kibo@prevas.dk
State Under Review
Delegated to: Kim
Headers show

Commit Message

Kim Bøndergaard Sept. 22, 2014, 6:09 a.m. UTC
From: Kim Bøndergaard <kim@fam-boendergaard.dk>

---
 recipes/busybox/busybox-configure.inc | 4 ++--
 recipes/busybox/busybox-install.inc   | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/recipes/busybox/busybox-configure.inc b/recipes/busybox/busybox-configure.inc
index c67242e..7816372 100644
--- a/recipes/busybox/busybox-configure.inc
+++ b/recipes/busybox/busybox-configure.inc
@@ -301,8 +301,8 @@  RECIPE_FLAGS += "busybox_udhcpd \
         busybox_udhcpd_sysvinit_start busybox_udhcpd_sysvinit_stop"
 # USE flag: enable udhcp server
 DEFAULT_USE_busybox_udhcpd = "0"
-DEFAULT_USE_busybox_udhcpd_sysvinit_start = "0"
-DEFAULT_USE_busybox_udhcpd_sysvinit_stop  = "0"
+DEFAULT_USE_busybox_udhcpd_sysvinit_start = "90"
+DEFAULT_USE_busybox_udhcpd_sysvinit_stop  = "90"
 BUSYBOX_PROVIDES:>USE_busybox_udhcpd = " busybox-udhcpd dhcp-server"
 DO_CONFIGURE_PREFUNCS:>USE_busybox_udhcpd = " do_configure_busybox_udhcpd"
 do_configure_busybox_udhcpd () {
diff --git a/recipes/busybox/busybox-install.inc b/recipes/busybox/busybox-install.inc
index 574c59d..8c249b8 100644
--- a/recipes/busybox/busybox-install.inc
+++ b/recipes/busybox/busybox-install.inc
@@ -46,6 +46,10 @@  do_install () {
 			${D}${datadir}/udhcpc/default.script
 	fi
 
+	if grep "CONFIG_UDHCPD=y" ${S}/.config; then
+		sysvinit_install_script ${SRCDIR}/busybox-udhcpd
+        fi
+
 	if grep "CONFIG_INETD=y" ${S}/.config; then
 		install -m 0644 ${SRCDIR}/inetd.conf ${D}${sysconfdir}/
 	fi