in Cudy TR3000 , toggle switch seem not work if kmod-button-hotplug not installed , after install it show as BTN_0 , can we change it to rfkill ? , i found some of my device rfkill can work without install kmod-button-hotplug.
I found Wiki to be unclear/confusing regarding the installation of kmod-button-hotplug to discover procd buttons and their actions. Unless I misunderstand, it then proceeds to direct the user to make UCI System configurations. These configurations did not work for me. Following only the procd section of the Wiki (after knowing the name of the button and positions), I had success with only the following steps:
Without installing kmod-button-hotplug:
Create /etc/rc.button/BTN_0- here's a sample script to log the button's activity:
#!/bin/sh
if [ "$ACTION" = "pressed" ] && [ "$BUTTON" = "BTN_0" ]; then
logger "button BTN_0 was pressed"
fi
if [ "$ACTION" = "released" ] && [ "$BUTTON" = "BTN_0" ]; then
logger "button BTN_0 was released"
fi
As i test , without kmod-button-hotplug it with show as ““ not “BTN_0” , i fail to use /etc/rc.button/BTN_0 not sure why. after install kmod-button-hotplug hotplug sh script work fine, that how i use it now.
This post helped me a lot to get the switch button BTN_0 to work on a GL.Inet GL MT3000. Maybe a good idea to add this to the wiki for hardware buttons?