mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
final recover detection fix
This commit is contained in:
@@ -130,7 +130,8 @@ while :
|
||||
fi
|
||||
|
||||
# if freshly recovered
|
||||
if [ "${state}" = "recovered" ]; then
|
||||
recoveredInfoExists=$(sudo ls /home/admin/raspiblitz.recover.info 2>/dev/null | grep -c '.info')
|
||||
if [ ${recoveredInfoExists} -gt 0 ]; then
|
||||
l1="FINAL RECOVER LOGIN NEEDED:\n"
|
||||
l2="ssh admin@${localip}\n"
|
||||
l3="Use password: raspiblitz\n"
|
||||
|
@@ -52,7 +52,8 @@ if [ "${state}" = "recovering" ]; then
|
||||
fi
|
||||
|
||||
# signal that after bootstrap recover user dialog is needed
|
||||
if [ "${state}" = "recovered" ]; then
|
||||
recoveredInfoExists=$(sudo ls /home/admin/raspiblitz.recover.info 2>/dev/null | grep -c '.info')
|
||||
if [ ${recoveredInfoExists} -gt 0 ]; then
|
||||
echo "System recovered - needs final user settings"
|
||||
/home/admin/20recoverDialog.sh
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user