Enelass
49
I was having a hard time getting this to work, so I tweaked the original file rather than replacing it, and select the Tor mode in the GUI. Here's what I did.
cp switchaction switchaction.bak #Backup original file just in case
vim switchaction
then replace the Tor entries by
wifi <up/down>
wifi reload
/etc/init.d/led <start/stop>
as illustrated below

When WiFi is on, the LED is on.
When I turn it off using the switch, I easily know it since the LED is off too, and I don't get radiated (AP is on my desk and next to my face).
This script will work with all models, but obviously if you don't have a LED on your model, you can removes those lines.
1 Like