This commit is contained in:
Maxim Devaev
2021-10-19 06:48:22 +03:00
parent b20d201517
commit 7ecf56d144

View File

@@ -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