diff --git a/board/common/post-build.sh b/board/common/post-build.sh index b3ab0059..745d1269 100755 --- a/board/common/post-build.sh +++ b/board/common/post-build.sh @@ -21,3 +21,14 @@ if [ -L "$TARGET_DIR/etc/dropbear" ]; then rm "$TARGET_DIR/etc/dropbear" mkdir "$TARGET_DIR/etc/dropbear" fi + +if [ -f "$TARGET_DIR/etc/dhcpcd.conf" ]; then + if grep -vq background "$TARGET_DIR/etc/dhcpcd.conf"; then + cat <<-EOF >> "$TARGET_DIR/etc/dhcpcd.conf" + + # Background immediately, do not wait for DHCP lease (speed up boot process) + background + + EOF + fi +fi