Script to switch wlan between ap-bridge and station
Posted: Sun May 21, 2023 5:27 am
Looking to write a script to swap the wlan interface to ap bridge when it's not running. i.e. permit configuration via wifi
AP i'm using only has one radio so need a way to update the security profile depending of the network i wish to connect. Assume there isn't an easier way or script existing after looking on Google and forums.
Effectively a script that checks the wlan interface status.
If wlan not running and has been more than one minute offline with uptime less than 2 minutes else if offline more than 10 minutes; set to mode bridge-ap, placeholder ssid "ConfigureMePls" and placeholder security profile to bring up other virtual APs.
Keen for thoughts. Else i'll write it in post here when it's done.
AP i'm using only has one radio so need a way to update the security profile depending of the network i wish to connect. Assume there isn't an easier way or script existing after looking on Google and forums.
Effectively a script that checks the wlan interface status.
If wlan not running and has been more than one minute offline with uptime less than 2 minutes else if offline more than 10 minutes; set to mode bridge-ap, placeholder ssid "ConfigureMePls" and placeholder security profile to bring up other virtual APs.
Keen for thoughts. Else i'll write it in post here when it's done.