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 exit 1
fi fi
# ========== Preparing ==========
if [ ! -f /boot/pikvm.txt ]; then if [ ! -f /boot/pikvm.txt ]; then
exit 0 exit 0
fi fi
@@ -40,6 +43,9 @@ source <(dos2unix < /boot/pikvm.txt)
rw rw
# ========== First boot configuration ==========
if [ -n "$FIRSTBOOT" ]; then if [ -n "$FIRSTBOOT" ]; then
( \ ( \
(umount /etc/machine-id || true) \ (umount /etc/machine-id || true) \
@@ -66,6 +72,9 @@ if [ -n "$FIRSTBOOT" ]; then
which fc-cache && fc-cache || true which fc-cache && fc-cache || true
fi fi
# ========== Wi-Fi ==========
# Set the regulatory domain for wifi, if defined. # Set the regulatory domain for wifi, if defined.
if [ -n "$WIFI_REGDOM" ]; then if [ -n "$WIFI_REGDOM" ]; then
sed -i \ sed -i \
@@ -94,6 +103,9 @@ end_wifi_config
REBOOT=1 REBOOT=1
fi fi
# ========== Finish ==========
rm -f /boot/pikvm.txt rm -f /boot/pikvm.txt
ro ro