From 61d1cd64b027b3a4af31c7e9137f5f4f45d08e9d Mon Sep 17 00:00:00 2001 From: Cameron Thompson <50184035+iamromulan@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:34:29 -0400 Subject: [PATCH] Update start_menu.sh --- simpleadmin/scripts/start_menu.sh | 34 +++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/simpleadmin/scripts/start_menu.sh b/simpleadmin/scripts/start_menu.sh index 80e6574..7703617 100644 --- a/simpleadmin/scripts/start_menu.sh +++ b/simpleadmin/scripts/start_menu.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Define executable files path +EXE=/usrdata/root/bin + # Display Messages in Colors display_green() { echo -e "\033[0;32m$1\033[0m" @@ -9,21 +12,40 @@ display_red() { echo -e "\033[0;31m$1\033[0m" } - +main_menu() { while true; do display_green "Welcome to iamromulan's Simple Console Menu" display_green "Select an option" echo "------------------" display_green "Select an option" - display_green "1. AP Settings" - display_green "2. Exit (Enter Root Shell)" + display_green "1. QCMAP Settings" + display_green "2. Change simpleadmin (admin) password" + display_green "3. Change root password (shell/ssh/console)" + display_green "4. Open File Browser/Editor (mc)" + display_green "5. View Used/Avalible space" + display_green "6. Open Task Manager/View CPU Load" + display_green "7. Run speedtest.net test" + display_green "8. Run fast.com test (30Mbps max)" + display_green "9. Get and run the Toolkit)" + display_green "10. Get and run the Development/unstable Toolkit" + display_green "11. Exit (Enter Root Shell)" echo read -p "Select an option (1-19): " option case "$option" in - 1) ap_settings.sh - 2) break;; + 1) $EXE/ap_settings + 2) $EXE/simplepasswd + 3) passwd + 4) mc + 5) dfc + 6) htop + 7) $EXE/speedtest + 8) $EXE/fast + 9) cd /tmp && wget -O RMxxx_rgmii_toolkit.sh https://raw.githubusercontent.com/iamromulan/quectel-rgmii-toolkit/main/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / + 10) cd /tmp && wget -O RMxxx_rgmii_toolkit.sh https://raw.githubusercontent.com/iamromulan/quectel-rgmii-toolkit/development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / + 11) break;; *) echo "Invalid option. Please try again.";; esac done -} \ No newline at end of file +} +main_menu \ No newline at end of file