mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
comments
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user