From 66077439b59a072124180a50a8d89f80ff522fcc Mon Sep 17 00:00:00 2001 From: sky Date: Fri, 13 Dec 2024 19:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20simpleadmin/console/menu/s?= =?UTF-8?q?tart=5Fmenu.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpleadmin/console/menu/start_menu.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/simpleadmin/console/menu/start_menu.sh b/simpleadmin/console/menu/start_menu.sh index a5279da..601380e 100644 --- a/simpleadmin/console/menu/start_menu.sh +++ b/simpleadmin/console/menu/start_menu.sh @@ -77,16 +77,18 @@ settings_menu() { display_green "2. simplefirewall settings (TTL and Port Block)" display_green "3. Change simpleadmin (admin) password" display_green "4. Change root password (shell/ssh/console)" - display_green "5. Go back" + display_green "5. Change hostname" + display_green "6. Go back" echo - read -p "Select an option (1-5): " option + read -p "Select an option (1-6): " option case "$option" in 1) $MENU_SH/LAN_settings.sh ;; 2) $MENU_SH/sfirewall_settings.sh ;; 3) simplepasswd ;; 4) passwd ;; - 5) break ;; + 5) $MENU_SH/change_hostname.sh ;; + 6) break ;; *) echo "Invalid option. Please try again." ;; esac done