summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-10-19 06:48:22 +0300
committerMaxim Devaev <[email protected]>2021-10-19 06:48:22 +0300
commit7ecf56d14444d4e6b4f761d3e80dc246ecc607b9 (patch)
tree5a629ecee147e6f8b7c6240f43f9f04d7092563b
parentb20d2015178419af1ca4fa78b1051e024fd94c3f (diff)
comments
-rwxr-xr-xscripts/kvmd-bootconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index 22c9ea97..a746c2cd 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -33,6 +33,9 @@ if [ "$1" != --do-the-thing ]; then
exit 1
fi
+
+# ========== Preparing ==========
+
if [ ! -f /boot/pikvm.txt ]; then
exit 0
fi
@@ -40,6 +43,9 @@ source <(dos2unix < /boot/pikvm.txt)
rw
+
+# ========== First boot configuration ==========
+
if [ -n "$FIRSTBOOT" ]; then
( \
(umount /etc/machine-id || true) \
@@ -66,6 +72,9 @@ if [ -n "$FIRSTBOOT" ]; then
which fc-cache && fc-cache || true
fi
+
+# ========== Wi-Fi ==========
+
# Set the regulatory domain for wifi, if defined.
if [ -n "$WIFI_REGDOM" ]; then
sed -i \
@@ -94,6 +103,9 @@ end_wifi_config
REBOOT=1
fi
+
+# ========== Finish ==========
+
rm -f /boot/pikvm.txt
ro