From cf5ec47b4806bebb4911183e36db541d20cb3357 Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:52:59 -0500 Subject: [PATCH] Add atcmd installation Lets you install the at command portion of the toolkit as a shell command. Just type atcmd from adb shell or ssh. Type install instead of exit to install it. --- RMxxx_rgmii_toolkit.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RMxxx_rgmii_toolkit.sh b/RMxxx_rgmii_toolkit.sh index 9c2b707..1dc1802 100644 --- a/RMxxx_rgmii_toolkit.sh +++ b/RMxxx_rgmii_toolkit.sh @@ -30,10 +30,20 @@ start_listening() { send_at_command() { echo "Enter AT command (or type 'exit' to quit): " + echo "Type 'install' to simply type atcmd in shell from now on" read at_command if [ "$at_command" = "exit" ]; then return 1 fi + + if [ "$at_command" = "install" ]; then + wget -P /usrdata https://raw.githubusercontent.com/iamromulan/quectel-rgmii-toolkit/main/atcmd + chmod +x /usrdata/atcmd + remount_rw + ln -sf /usrdata/atcmd /sbin + remount_ro + echo "Installed. Type atcmd from adb shell or ssh to start an AT Command session" + fi echo -e "${at_command}\r" > "$DEVICE_FILE" }