Switch precheck messages to infoboxes

This commit is contained in:
natemaia 2019-01-18 23:13:35 -08:00
parent fb99fbe371
commit b20102f5bd

View File

@ -2502,11 +2502,11 @@ system_checks()
prechecks()
{
if [[ $1 -ge 0 ]] && ! [[ $(lsblk -lno MOUNTPOINT) =~ $MNT ]]; then
msgbox "$_ErrTitle" "$_ErrNoMount"; SEL=4; return 1
infobox "$_ErrTitle" "$_ErrNoMount"; SEL=4; return 1
elif [[ $1 -ge 1 && ($NEWUSER == "" || $USER_PASS == "") ]]; then
msgbox "$_ErrTitle" "\nYou need to create a user first.\n"; SEL=5; return 1
infobox "$_ErrTitle" "\nYou need to create a user first.\n"; SEL=5; return 1
elif [[ $1 -ge 2 && $CONFIG_DONE != true ]]; then
msgbox "$_ErrTitle" "$_ErrNoConfig"; SEL=6; return 1
infobox "$_ErrTitle" "$_ErrNoConfig"; SEL=6; return 1
fi
return 0
}