From 7109598748859cd229f316f7dc06a5f538afefc6 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 23 Mar 2018 15:07:56 -0400 Subject: [PATCH] Setup Script - added fallback menu --- so-setup-network.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/so-setup-network.sh b/so-setup-network.sh index 94d24c1a9..d877634d6 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -308,6 +308,10 @@ whiptail_install_type() { "MASTERONLY" "Start a new grid" OFF \ "STORAGENODE" "Add a Storage Node" OFF 3>&1 1>&2 2>&3 ) + local exitstatus=$? + if [[ "$exitstatus" = 1 ]]; then + whiptail_menu + fi } whiptail_management_nic() { @@ -316,6 +320,17 @@ whiptail_management_nic() { } +whiptail_menu() { + MENU=$(whiptail --title "Menu example" --menu "Choose an option" 25 78 16 \ +"<-- Back" "Return to the main menu." \ +"Add User" "Add a user to the system." \ +"Modify User" "Modify an existing user." \ +"List Users" "List all users on the system." \ +"Add Group" "Add a user group to the system." \ +"Modify Group" "Modify a group and its list of members." \ +"List Groups" "List all groups on the system.") +} + whiptail_nids() { NIDS=$(whiptail --title "Security Onion Setup" --radiolist \