Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions recipes/busybox/busybox-configure.inc
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,14 @@ do_configure_busybox_dhclient () {
BUSYBOX_SIMPLE_USE_FLAGS += "ifupdown_external_dhcp=1::\
CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP"

RECIPE_FLAGS += "busybox_disable_external_dhcp_startup"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the negated USE flag?

Why not USE_busybox_ifupdown_external_dhcp and set it to default True?

DEFAULT_USE_busybox_disable_external_dhcp_startup = False
DO_CONFIGURE_PREFUNCS:>USE_busybox_disable_external_dhcp_startup = " do_configure_busybox_disable_external_dhcp_startup"
do_configure_busybox_disable_external_dhcp_startup () {
sed -i -e 's/^\(CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP\)=y/\1=n/' \
.config
}

RECIPE_FLAGS += "busybox_udhcpc6"
# USE flag: enable udhcpc6 client
DEFAULT_USE_busybox_udhcpc6 = False
Expand Down