Switch precheck messages to infoboxes
This commit is contained in:
parent
fb99fbe371
commit
b20102f5bd
@ -2502,11 +2502,11 @@ system_checks()
|
|||||||
prechecks()
|
prechecks()
|
||||||
{
|
{
|
||||||
if [[ $1 -ge 0 ]] && ! [[ $(lsblk -lno MOUNTPOINT) =~ $MNT ]]; then
|
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
|
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
|
elif [[ $1 -ge 2 && $CONFIG_DONE != true ]]; then
|
||||||
msgbox "$_ErrTitle" "$_ErrNoConfig"; SEL=6; return 1
|
infobox "$_ErrTitle" "$_ErrNoConfig"; SEL=6; return 1
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user