switch-event
来自「GPE内核镜像文件 已在qemu上跑过的」· 代码 · 共 19 行
TXT
19 行
#!/bin/sh## Called by switchevd with# $1 = /dev/input/eventX - the device that triggered the switch event# $2 = 00000000 - The switch bits status (in hex)if [ -z "$1" -o -z "$2" ]; then echo "Incorrect usage" exit 1fiif [ "x$SWITCH_EVENT_ZHINGE" = "x1" -a -x /etc/zaurusd/scripts/zaurus-hinge ]; then /etc/zaurusd/scripts/zaurus-hinge $(( 0x$2 & 3 ))fiif [ "x$SWITCH_EVENT_ZMIXER" = "x1" -a -x /etc/zaurusd/scripts/zaurus-mixer ]; then /etc/zaurusd/scripts/zaurus-mixer $(( (0x$2 & 0x4) >> 2 ))fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?