edit setup dialogs

This commit is contained in:
rootzoll
2025-01-17 21:35:25 +01:00
parent d4f74c878e
commit cc206e4468
3 changed files with 9 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ if [ "${setupPhase}" = "setup" ]; then
# ask user about system copy
/home/admin/setup.scripts/dialogSystemCopy.sh
userChoice=$?
if [ "${userChoice}" == "1" ]; then
if [ "${userChoice}" == "0" ]; then
echo "systemCopy=1" >> $SETUPFILE
else
echo "systemCopy=0" >> $SETUPFILE
@@ -151,11 +151,12 @@ if [ "${setupPhase}" = "setup" ]; then
source <(/home/admin/_cache.sh get system_setup_storageMigration system_setup_storageBlockchainGB)
# check if there is a blockchain to use (so HDD is already formatted)
# thats also true if the node is coming from another nodeOS
# only offer 'keep blockchain' option on systems that dont boot from storage
existingBlockchain=""
if [ "${system_setup_storageBlockchainGB}" == "1" ] || [ "${system_setup_storageMigration}" != "" ]; then
existingBlockchain="BITCOIN"
if [ "${system_setup_bootFromStorage}" == "0" ]; then
if [ "${system_setup_storageBlockchainGB}" != "" ] || [ "${system_setup_storageBlockchainGB}" != "0" ]; then
existingBlockchain="BITCOIN"
fi
fi
# ask user about possible existing blockchain and formatting HDD

View File

@@ -42,9 +42,9 @@ Are you sure to DELETE ALL OTHER DATA on the HDD/SSD?
else
# normal formatting data drive security question
whiptail --title " FORMATTING DATA DRVE " --yes-button "DELETE DATA" --no-button "STOP SETUP" --yesno "Your data drive will now get formatted. This will delete all data on your connected HDD/SSD. Make sure that there is no important data or old funds on that data drive.
whiptail --title " FORMATTING DATA DRVE " --yes-button "DELETE DATA" --no-button "STOP SETUP" --yesno "Your data drive(s) will now get formatted. This will delete all data on your connected SSD/NVMe drive(s). Make sure that there is no important data or old funds on that data drive(s).
Are you sure to format the HDD/SSD and DELETE ALL DATA on it?
Are you sure to format and DELETE ALL DATA on it?
" 11 65
if [ "$?" == "0" ]; then

View File

@@ -15,7 +15,7 @@ if [ "${system_setup_dataDevice}" != "" ]; then
driveInfo+="DATA: ${system_setup_dataDevice} ${system_setup_systemSizeGB}GB\n"
fi
whiptail --title " BOOT FROM SSD/NVME " --yes-button "YES - BOOT SSD/NVME" --no-button "NO" --yesno "Your system allows to BOOT FROM SSD/NVME - which allows for better stability & performance and is recommended.
whiptail --title " BOOT FROM SSD/NVME " --yes-button "YES - BOOT SSD/NVME" --no-button "NO" --yesno "Your system allows to BOOT FROM SSD/NVME - which provides better stability & performance and is recommended.
${driveInfo}