final recover detection fix

This commit is contained in:
Christian Rotzoll
2019-05-02 14:38:03 +02:00
parent c80655cf00
commit e59d07c37d
2 changed files with 4 additions and 2 deletions

View File

@@ -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"

View File

@@ -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