Skip to content

Commit 13e12fe

Browse files
committed
refact: dialogs
1 parent 82604b7 commit 13e12fe

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎system/cuos/dialog-maintenance.sh‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,11 @@ maintenance_menu() {
3838
done
3939
}
4040

41-
installation_precheck() {
42-
}
43-
4441
install_menu() {
4542
local extra
4643
extra=()
4744
if [[ "${1:-}" =~ ^.*admin.*$ ]]; then
48-
extra=("pass" "Change Administrator Password")
45+
extra+=("pass" "Change Administrator Password")
4946
fi
5047
while true; do
5148
local ipaddress
@@ -61,11 +58,11 @@ install_menu() {
6158
"net" "Configure Network${ipaddress:+": ${ipaddress}"}" \
6259
- " " \
6360
"act" "System Actions" \
64-
"diag" "Diagnostics" \
61+
"diagnostics_menu" "Diagnostics" \
6562
- " " \
6663
"exit" "\Z5Continue Installation\Z0")" || return 1
67-
#"pass" "Change Admin Password"
6864
case "$choice" in
65+
check) system_qualification_dialog ;;
6966
net)
7067
"${SCRIPT_DIR}/dialog-edit-network.sh" network ;;
7168
host)
@@ -302,7 +299,6 @@ change_vt
302299

303300
if [[ "${1:-}" == "--install" ]]; then
304301
shift
305-
installation_precheck
306302
install_menu "$@"
307303
sleep 1
308304
else

0 commit comments

Comments
 (0)