I want to reconnect my wifi, but ideally something as simple as emulating the click on the wifi symbol on the top right. This is because I am behind a captive portal, and sometimes it times out, and it needs a reconnect in order to be available again, which I'd like to do via cron
, but otherwise I really like gnome's utility.
Similar questions have been asked, but they all seem to resolve around some version of
sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
That doesn't quite seem to do what I want. For example, after running sudo ifconfig wlan0 down
gnome doesn't even recognize that the wifi is disconnected (even though internet obviously doesn't work any more).
Is there a way to address whatever system it is that gnome is using?
Thanks