Apply settings without full network restart

On a daily basis I change my guest wifi password.
I use this script
"ssh -i /config/.ssh/router -o 'StrictHostKeyChecking=no' root@192.168.180.1 'uci set wireless.wifinet2.key=''some password'' && uci commit wireless && /etc/init.d/network restart'"
but /etc/init.d/network restart restarts the full network and disconnects every device. Some devices do not react will on that.
is there a way to only restart the specific SSID

Restart wpad or restart interface via ubus call?

1 Like

Also:

  • /etc/init.d/network reload - only reloads changes
  • wifi - restart wifi

thnx, I went with network reload and my devices stay connected.
and alsoy the changes are applied.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.