Is there any way, command or script, to read current buttons' state?
I want to write a script that will do various things according to the slide switch of my MR3020. The script will be placed in /etc/hotplug.d/button/ so every time the switch changes position the script will be executed, then in the script it will read BTN_0 and BTN_1 states and execute commands accordingly.
Thanks!
