Well great minds think alike, or at least similar. I was thinking that the button would be a better option for resetting the router (deleting the STA config section). The switch seems like a better tool for turning on and off the wifi (WWAN).
Does the button disable the WWAN or all wireless? I assume it just adds option disabled ‘1’ ??
Unfortunately no clue as to how to do this. The info is not detailed enough for one with my skill level. Maybe some detailed blogs or written instructions on these tools would help.
Back to the real problem, I am mostly using the GLI GUI, the problem is still there is no LAN to connect to if the WAN can not find it’s connection. The script above works, but it’s a problem when the PC goes to sleep. It would be a perfect button (or switch) script.