aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2021-10-05 15:54:05 +0100
committerSerge Schneider <[email protected]>2021-10-05 17:26:51 +0100
commitac246e300bdd55005ab811bcd817f1221b328fd7 (patch)
tree753c046bb734bd99b3a14a7291331a6b97d13366
parentd0eed3b76f0983dea8e9333007dd5e46caf3ba1e (diff)
Use raspi-config to toggle boot_wait
-rwxr-xr-xstage2/02-net-tweaks/01-run.sh7
-rw-r--r--stage2/02-net-tweaks/files/wait.conf3
-rwxr-xr-xstage3/01-tweaks/00-run.sh4
3 files changed, 7 insertions, 7 deletions
diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh
index d82381b..837e861 100755
--- a/stage2/02-net-tweaks/01-run.sh
+++ b/stage2/02-net-tweaks/01-run.sh
@@ -1,11 +1,12 @@
#!/bin/bash -e
-install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d"
-install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/"
-
install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant"
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_wait 0
+EOF
+
if [ -v WPA_COUNTRY ]; then
echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf"
fi
diff --git a/stage2/02-net-tweaks/files/wait.conf b/stage2/02-net-tweaks/files/wait.conf
deleted file mode 100644
index 595cc2d..0000000
--- a/stage2/02-net-tweaks/files/wait.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-[Service]
-ExecStart=
-ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w
diff --git a/stage3/01-tweaks/00-run.sh b/stage3/01-tweaks/00-run.sh
index 5da7c1a..79b749e 100755
--- a/stage3/01-tweaks/00-run.sh
+++ b/stage3/01-tweaks/00-run.sh
@@ -1,3 +1,5 @@
#!/bin/bash -e
-rm -f "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf"
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_wait 1
+EOF