RUTX11 - if interface down, then wireless interface down

We have clients on vehicles that have a backup connection should the primary connection go down.
The primary connection is a RUTX11 using a vpn back to our network. The RUTX11 advertises a wireless SSID to the clients. The clients connect to this as their primary connection.
If the vpn on the RUTX11 goes down, the clients still remain connected because they see the SSID. This then prevents the clients reaching our network as there is no egress from the RUTX11.
Is there a way to disable the SSID if there is no wan/vpn egress?

eg:

if intWAN0 down, then intSSID1 down
& if intWAN0 up, then intSSID1 up

Hello,

You can achieve this by writing a custom script that disables the SSID when WAN/VPN is disabled and enables it when WAN/VPN is active.

For reference, you can check out custom script examples on our wiki page: User Scripts Examples

Let me know if you need any further assistance.

Best regards,

ummmmh… doesn’t make a lot of sense to me so any help would be appreciated.
Thank you.