Update start_menu.sh
This commit is contained in:
@@ -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
|
||||
}
|
||||
main_menu
|
||||
Reference in New Issue
Block a user