- adikbo/wrtmanager GitHub Wiki

Most advanced of all scripts - uses two uci commands.

First one sets the SSID same as in script. Second command sets the Pre-Shared key. Password is stored in plain text in the configuration of the device so there is no rocket science in the command:

uci set wireless.@wifi-iface\[0].key='$PSK'\r

Same situation as in - variable PSK is passed to the script from the script. PSK is set for the wifi interface 0.