ath79: ZTE MF286[A,R]: add "Power button blocker" GPIO switch
[openwrt/staging/chunkeey.git] / target / linux / ath79 / nand / base-files / etc / board.d / 03_gpio_switches
1 #
2 # Copyright (C) 2022 OpenWrt.org
3 #
4
5 . /lib/functions/uci-defaults.sh
6
7 board_config_update
8
9 board=$(board_name)
10
11 case "$board" in
12 zte,mf286a|\
13 zte,mf286r)
14 ucidef_add_gpio_switch "power_btn_block" "Power button blocker" "20" "0"
15 ;;
16 esac
17
18 board_config_flush
19
20 exit 0