打开App
打开西瓜视频,看完整高清内容
0粉丝undefined视频
关注

OpenWrt自定义设置路由器按钮 find /sys/firmware/devicetree/base/gpio-keys -mindepth 1 -type d | while read -r f; do printf '%s: %s\n' $(basename $f) $(hexdump -s2 -e '2/1 "%02x""\n"' $f/linux,code); done mkdir -p /etc/hotplug.d/button cat << "EOF" > /etc/hotplug.d/button/buttons logger "the button was ${BUTTON} and the action was ${ACTION}" EOF logread cat << "EOF" > /etc/hotplug.d/button/00-button source /lib/functions.sh do_button () { local button local action local handler local min local max config_get button "${1}" button config_get action "${1}" action config_get handler "${1}" handler config_get min "${1}" min config_get max "${1}" max [ "${ACTION}" = "${action}" -a "${BUTTON}" = "${button}" -a -n "${handler}" ] && { [ -z "${min}" -o -z "${max}" ] && eval ${handler} [ -n "${min}" -a -n "${max}" ] && { [ "${min}" -le "${SEEN}" -a "${max}" -ge "${SEEN}" ] && eval ${handler} } } } 代码放不下了,评论里继续

1次播放2025-01-01发布
相关推荐
评论 0
打开App观看
2039次播放4天前
6次播放前天10:22