@@ -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 () {
@@ -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
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(-)