mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
refactoring
This commit is contained in:
parent
e7d4f7fe8c
commit
97dbc17771
@ -55,6 +55,10 @@ source /usr/share/kvmd/platform || true
|
||||
|
||||
rw
|
||||
|
||||
need_reboot() {
|
||||
touch /boot/pikvm-reboot.txt
|
||||
}
|
||||
|
||||
|
||||
# ========== First boot and/or Avahi configuration ==========
|
||||
|
||||
@ -148,7 +152,7 @@ if [ -n "$ENABLE_AVAHI" ]; then
|
||||
make_avahi_service
|
||||
fi
|
||||
systemctl enable avahi-daemon || true
|
||||
touch /boot/pikvm-reboot.txt
|
||||
need_reboot
|
||||
fi
|
||||
|
||||
|
||||
@ -171,7 +175,7 @@ TTYVHangup=no
|
||||
TTYVTDisallocate=no
|
||||
end_of_file
|
||||
systemctl enable getty@ttyGS0.service
|
||||
touch /boot/pikvm-reboot.txt
|
||||
need_reboot
|
||||
fi
|
||||
|
||||
|
||||
@ -271,7 +275,7 @@ end_of_file
|
||||
sed -i -e 's/^}/\tscan_ssid=1\n}/g' "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
|
||||
fi
|
||||
systemctl enable "wpa_supplicant@$WIFI_IFACE.service" || true
|
||||
touch /boot/pikvm-reboot.txt
|
||||
need_reboot
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user