2018-09-04 00:08:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2018 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
board=$(board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2019-03-21 11:50:01 +00:00
|
|
|
comfast,cf-e5)
|
|
|
|
ucidef_add_gpio_switch "lte_power" "LTE Power" "14" "1"
|
|
|
|
ucidef_add_gpio_switch "lte_wakeup" "LTE Wakeup" "11" "1"
|
|
|
|
ucidef_add_gpio_switch "lte_poweroff" "LTE Poweroff" "1" "1"
|
|
|
|
ucidef_add_gpio_switch "lte_reset" "LTE Reset" "12" "1"
|
|
|
|
;;
|
2018-12-01 18:41:34 +00:00
|
|
|
dlink,dir-825-c1|\
|
|
|
|
dlink,dir-835-a1)
|
|
|
|
ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
|
|
|
|
;;
|
2019-03-09 01:10:25 +00:00
|
|
|
librerouter,librerouter-v1)
|
|
|
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "1" "0"
|
|
|
|
;;
|
2018-09-04 00:08:01 +00:00
|
|
|
ubnt,nanostation-ac)
|
|
|
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|