raspiblitz/home.admin/setup.scripts/finalDialogControl.sh

45 lines
1.1 KiB
Bash
Raw Normal View History

2021-05-25 17:29:57 -05:00
#!/bin/bash
# get basic system information
# these are the same set of infos the WebGUI dialog/controler has
source /home/admin/raspiblitz.info
# SETUPFILE
# this key/value file contains the state during the setup process
SETUPFILE="/var/cache/raspiblitz/temp/raspiblitz.setup"
source ${SETUPFILE}
############################################
# SHOW SEED WORDS AFTER SETUP
if [ "${setupPhase}" == "setup" ]; then
2021-05-25 18:08:45 -05:00
clear
echo "Write down your seedwords:"
echo "${seedwords6x4NEW}"
2021-05-25 17:29:57 -05:00
echo "PRESS ENTER"
2021-05-25 18:04:01 -05:00
read key
2021-05-25 17:29:57 -05:00
fi
############################################
# SETUP DONE CONFIRMATION (Konfetti Moment)
# when coming from fresh setup
if [ "${setupPhase}" == "setup" ];
2021-05-25 18:08:45 -05:00
clear
2021-05-25 17:29:57 -05:00
echo "Hooray :) Everything is Setup!"
echo "PRESS ENTER"
2021-05-25 18:04:01 -05:00
read key
2021-05-25 17:29:57 -05:00
2021-05-25 18:08:45 -05:00
# when coming from migration from other node
2021-05-25 17:29:57 -05:00
elif [ "${setupPhase}" == "migration" ]; then
2021-05-25 18:08:45 -05:00
clear
2021-05-25 17:29:57 -05:00
echo "Hooray :) Your Migration to RaspiBlitz is Done!"
echo "PRESS ENTER"
2021-05-25 18:04:01 -05:00
read key
2021-05-25 17:29:57 -05:00
2021-05-25 18:08:45 -05:00
# just in case then from another phase
2021-05-25 17:29:57 -05:00
else
2021-05-25 18:08:45 -05:00
clear
2021-05-25 17:29:57 -05:00
echo "Missing Final Done Dialog for: ${setupPhase}"
echo "PRESS ENTER"
2021-05-25 18:04:01 -05:00
read key
2021-05-25 17:29:57 -05:00
fi