jeffsf
10
/etc/rc.button/BTN_0 would need to be a shell script that sets your wireless on or off, when the switch position changes.
/etc/init.d/wireless_switch (or the like) would need to be an “init script” that includes when it should run on boot and when on shutdown (probably doing nothing), along with what it needs to do in the start_service() and stop_service() definitions.
You would need a basic knowledge of shell scripts (POSIX sh, ash, or dash, as OpenWrt doesn’t support bash in its default configuration) to be able to write these. Using the uci tool is perhaps the easiest way to control if a radio or AP is disabled or not.