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