mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 06:13:02 +02:00
board/common: ensure dhcpcd backgrounds immediately for quicker boot
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user