Building menus

This commit is contained in:
iamromulan
2024-04-22 00:15:53 -04:00
parent c395467364
commit 631ab97a9c
2 changed files with 131 additions and 19 deletions

View File

@@ -2,6 +2,7 @@
# Define executable files path
EXE=/usrdata/root/bin
MENU_SH=/usrdata/simpleadmin/console/menu
# Display Messages in Colors
display_random_color() {
@@ -42,7 +43,7 @@ toolkit() {
read -p "Select an option (1-11): " option
case "$option" in
1) $EXE/LAN_settings ;;
1) $MEU/LAN_settings ;;
2) $EXE/simplepasswd ;;
3) passwd ;;
4) mc ;;
@@ -78,7 +79,7 @@ apps() {
read -p "Select an option (1-11): " option
case "$option" in
1) $EXE/LAN_settings ;;
1) $menu_sh/LAN_settings ;;
2) $EXE/simplepasswd ;;
3) passwd ;;
4) mc ;;
@@ -102,29 +103,15 @@ settings() {
display_green "1. LAN 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/Available 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)"
display_green "4. Go back"
echo
read -p "Select an option (1-11): " option
case "$option" in
1) $EXE/LAN_settings ;;
1) $MENU_SH/LAN_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 ;;
4) break ;;
*) echo "Invalid option. Please try again." ;;
esac
done