kopia lustrzana https://github.com/cyoung/stratux
adjust first-boot handling for bookworm
rodzic
9f47302a20
commit
ed5c29e3aa
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue