ssid.sh - adikbo/wrtmanager GitHub Wiki

Script invoked within wrtmanager.sh

Used for changing ssid on the devices passed by 1st parameter. Second parameter is the password to the device and third one is the ssid.

Script uses expect to spawn the ssh client. Waits for the password prompt and logs in.

After the succesfull login invokes the uci command which changes the SSID. Almost on every device SSID can be changed using the wireless[0] device.

Uci command used in this script:

uci set wireless.@wifi-iface\[0].ssid='$SSID'

Finally after succesfull execution there is an ip address written into logfile.