adjust first-boot handling for bookworm

pull/827/head
Adrian Batzill 2024-03-24 16:11:53 +01:00
rodzic 9f47302a20
commit ed5c29e3aa
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ function wLog () {
wLog "Running Stratux Updater Script."
SCRIPT_MASK="update*stratux*v*.sh"
TEMP_LOCATION="/boot/StratuxUpdates/$SCRIPT_MASK"
TEMP_LOCATION="/boot/firmware/StratuxUpdates/$SCRIPT_MASK"
UPDATE_LOCATION="/root/$SCRIPT_MASK"
if [ -e ${TEMP_LOCATION} ]; then
@ -40,9 +40,9 @@ if [ -e ${UPDATE_LOCATION} ]; then
fi
if [ -f /boot/.stratux-first-boot ]; then
rm /boot/.stratux-first-boot
if [ -f /boot/stratux.conf ] && grep -q WiFi /boot/stratux.conf ; then
if [ -f /boot/firmware/.stratux-first-boot ]; then
rm /boot/firmware/.stratux-first-boot
if [ -f /boot/firmware/stratux.conf ] && grep -q WiFi /boot/firmware/stratux.conf ; then
# Import old stratux.conf.. apply network settings
/opt/stratux/bin/gen_gdl90 -write-network-config
wLog "re-wrote network configuration for first-boot config import. Rebooting... Bye"