mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 01:46:42 +01:00
perserving setup step over bootings
This commit is contained in:
@@ -153,6 +153,9 @@ else
|
|||||||
sudo mv ${targetDir}${targetPath} /mnt/hdd/${network}
|
sudo mv ${targetDir}${targetPath} /mnt/hdd/${network}
|
||||||
echo "OK"
|
echo "OK"
|
||||||
|
|
||||||
|
# set SetupState
|
||||||
|
sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
|
||||||
|
|
||||||
# continue setup
|
# continue setup
|
||||||
./60finishHDD.sh
|
./60finishHDD.sh
|
||||||
|
|
||||||
|
|||||||
@@ -268,5 +268,8 @@ sudo rm -r ${targetDir}
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
date +%s
|
date +%s
|
||||||
|
|
||||||
|
# set SetupState
|
||||||
|
sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
|
||||||
|
|
||||||
# continue setup
|
# continue setup
|
||||||
./60finishHDD.sh
|
./60finishHDD.sh
|
||||||
@@ -42,7 +42,7 @@ chain=""
|
|||||||
setupStep=0
|
setupStep=0
|
||||||
|
|
||||||
# try to load old values if available (overwrites defaults)
|
# try to load old values if available (overwrites defaults)
|
||||||
source infoFile 2>/dev/null
|
source ${infoFile} 2>/dev/null
|
||||||
|
|
||||||
# resetting info file
|
# resetting info file
|
||||||
echo "Resetting the InfoFile: ${infoFile}"
|
echo "Resetting the InfoFile: ${infoFile}"
|
||||||
|
|||||||
Reference in New Issue
Block a user