psk.sh - adikbo/wrtmanager GitHub Wiki

Most advanced of all scripts - uses two uci commands.

First one sets the SSID same as in ssid.sh 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 ssid.sh - variable PSK is passed to the script from the wrtmanager.sh script. PSK is set for the wifi interface 0.