I’ve started trying to understand how travelmate works, and I see what its doing. Where my kludgy script is different is that it’ll actually scan the air, and if none of the STAtions exist, will remove the STA config completely to allow AP only to work. It will restore the STA config if one of the stored STAtions is out there at boot or at a wifi interface change. Travelmate looks like it does something similar, except it doesn’t remove the STAtion config.

There are issues associated with that, but they’re fairly minor. I think I can use travelmate as a base to get exactly what I want. Learning scripting on this is a fun little activity.

Thanks for all the suggestions, guys!