diff options
-rw-r--r-- | target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches b/target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches new file mode 100644 index 0000000000..775778a2be --- /dev/null +++ b/target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches @@ -0,0 +1,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 |