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
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user