更新 simpleadmin/console/menu/start_menu.sh

This commit is contained in:
sky 2024-12-13 19:37:19 +08:00
parent 36e8f314ff
commit 66077439b5

View File

@ -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