I have no idea where to classify this. I wrote a short script in Expect to flash the firmware of the radio because I got tired of typing all the commands quickly:
#!/usr/bin/expect -f
spawn tftp 192.168.1.20
expect "tftp> "
send "trace\r"
expect "tftp> "
send "bin\r"
expect "tftp> "
send "put aredn-3.19.3.0-ubnt-nano-m-factory.bin\r"
expect "tftp> "
send "quit\r"
chmod +x upload.sh
./upload.sh
Caveat is that I have a 192.168.1.200/24 profile saved in the Linux laptop, so once I connect and pick that profile, I have to wait a few seconds to be sure that NetworkManager isn't going to change to the DHCP profile instead of the static IP profile. Then fire off the script and wait for the radio to reboot twice.
73, Kris