aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches
blob: 775778a2be244b11fd77f49f6944c877c45a9066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Copyright (C) 2022 OpenWrt.org
#

. /lib/functions/uci-defaults.sh

board_config_update

board=$(board_name)

case "$board" in
zte,mf286a|\
zte,mf286r)
	ucidef_add_gpio_switch "power_btn_block" "Power button blocker" "20" "0"
	;;
esac

board_config_flush

exit 0