mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
auto-unlock on recover dialog
This commit is contained in:
@@ -58,21 +58,22 @@ Write them down & store them in a safe place.
|
|||||||
# remove flag that freshly recovered
|
# remove flag that freshly recovered
|
||||||
sudo rm /home/admin/raspiblitz.recover.info
|
sudo rm /home/admin/raspiblitz.recover.info
|
||||||
|
|
||||||
# sucess info dialog
|
|
||||||
dialog --backtitle "RaspiBlitz" --msgbox "New SSH password A is '$result'\nFINAL REBOOT IS NEEDED." 6 52
|
|
||||||
|
|
||||||
# when auto-unlock is activated then Password C is needed to be restored on SD card
|
# when auto-unlock is activated then Password C is needed to be restored on SD card
|
||||||
if [ "${autoUnlock}" = "on" ]; then
|
if [ "${autoUnlock}" = "on" ]; then
|
||||||
# ask user for new password C
|
|
||||||
dialog --backtitle "RaspiBlitz - Setup"\
|
# reset auto-unlock feature
|
||||||
--inputbox "Please enter your ACTUAL Password C:\n!!! This is needed for the Auto-Unlock feature" 10 52 2>$_temp
|
dialog --backtitle "RaspiBlitz - Setup" --msgbox "You had the Auto-Unlock feature enabled.
|
||||||
result=$( cat $_temp )
|
|
||||||
shred $_temp
|
In the next dialog you need to re-enter your
|
||||||
if [ ${#result} -gt 0 ]; then
|
ACTUAL/OLD Password C to re-activate the
|
||||||
sudo /home/admin/config.scripts/lnd.autounlock.sh on ${result}
|
Auto-Unlock feature. Enter a empty password
|
||||||
else
|
to deactivate the Auto-Unlock feature.
|
||||||
sudo /home/admin/config.scripts/lnd.autounlock.sh off
|
" 10 52
|
||||||
fi
|
sudo /home/admin/config.scripts/lnd.autounlock.sh on
|
||||||
|
dialog --backtitle "RaspiBlitz" --msgbox "FINAL REBOOT IS NEEDED." 6 52
|
||||||
|
|
||||||
|
else
|
||||||
|
dialog --backtitle "RaspiBlitz" --msgbox "New SSH password A is '$result'\nFINAL REBOOT IS NEEDED." 6 52
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo shutdown -r now
|
sudo shutdown -r now
|
||||||
|
Reference in New Issue
Block a user