@yuxin.zou @robotluo Do you guys know how to bring back custom buttons too? What I used to do is create a /etc/hotplug.d/button/buttons file with the code to turn off and on wifi. but now after the update nothing is working and that file Ibelieve is not even being called when I flip the switch on my beryl mt1300.
more over the mt1300_led is gone so I can't control LED now either, and even when I try to run i2cset command led doesn't react i2cset -f -y 0 0x30 0x01 0x07 #period : 1.024s
#!/bin/sh
if [ "${BUTTON}" = "BTN_0" ] && [ "${ACTION}" = "pressed" ]; then
logger "BTN: Pressed"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=0
uci set wireless.@wifi-iface[1].disabled=0
mt1300_led both_breath
elif [ "${BUTTON}" = "BTN_0" ] && [ "${ACTION}" = "released" ]; then
logger "BTN: Released"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-iface[1].disabled=1
mt1300_led both_flash fast
fi
uci commit wireless
wifi reload
wifi