mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix info script
This commit is contained in:
parent
43882a763b
commit
8bf4c758f4
1 changed files with 21 additions and 2 deletions
|
@ -122,8 +122,7 @@ while :
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if recovering/upgrade is running
|
if [ $state == 'repair' ]; then
|
||||||
if [ $state == 'repair' ] || [ $state == 'retorrent' ] || [ $state == 'recopy' ] ; then
|
|
||||||
l1="Repair Mode\n"
|
l1="Repair Mode\n"
|
||||||
l2="ssh admin@${localip}\n"
|
l2="ssh admin@${localip}\n"
|
||||||
l3="Use password: PasswordA\n"
|
l3="Use password: PasswordA\n"
|
||||||
|
@ -133,6 +132,26 @@ while :
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $state == 'retorrent' ]; then
|
||||||
|
l1="Repair Mode- TORRENT\n"
|
||||||
|
l2="ssh admin@${localip}\n"
|
||||||
|
l3="Use password: PasswordA\n"
|
||||||
|
boxwidth=$((${#localip} + 28))
|
||||||
|
dialog --backtitle "RaspiBlitz ${codeVersion} (${state}) ${setupStep} ${localip}" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
|
sleep 3
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $state == 'recopy' ]; then
|
||||||
|
l1="Repair Mode - COPY\n"
|
||||||
|
l2="ssh admin@${localip}\n"
|
||||||
|
l3="Use password: PasswordA\n"
|
||||||
|
boxwidth=$((${#localip} + 28))
|
||||||
|
dialog --backtitle "RaspiBlitz ${codeVersion} (${state}) ${setupStep} ${localip}" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
|
sleep 3
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
# if freshly recovered
|
# if freshly recovered
|
||||||
if [ "${state}" = "recovered" ]; then
|
if [ "${state}" = "recovered" ]; then
|
||||||
l1="FINAL RECOVER LOGIN NEEDED:\n"
|
l1="FINAL RECOVER LOGIN NEEDED:\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue