The TP-Link Archer C25 is a low-cost dual-band router. Specification: - CPU: Atheros QCA9561 775 MHz - RAM: 64 MB - Flash: 8 MB - Wifi: 3x3 2.4 GHz (integrated), 1x1 5 GHz QCA9887 - NET: 5x 10/100 Mbps Ethernet Some LEDs are controlled by an additional 74HC595 chip, but not all of them as e.g. for the C59. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
46 lines
1.1 KiB
Bash
Executable file
46 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2018 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
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"
|
|
;;
|
|
dlink,dir-825-c1|\
|
|
dlink,dir-835-a1)
|
|
ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
|
|
;;
|
|
librerouter,librerouter-v1)
|
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "1" "0"
|
|
;;
|
|
tplink,archer-c25-v1)
|
|
ucidef_add_gpio_switch "led_control" "LED control" "21" "0"
|
|
ucidef_add_gpio_switch "led_reset" "LED reset" "19" "1"
|
|
;;
|
|
ubnt,nanostation-ac)
|
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
|
|
;;
|
|
ubnt,acb-isp)
|
|
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
|
|
;;
|
|
zbtlink,zbt-wd323)
|
|
ucidef_add_gpio_switch "io0" "IO#0" "0"
|
|
ucidef_add_gpio_switch "io1" "IO#1" "1"
|
|
ucidef_add_gpio_switch "io2" "IO#2" "2"
|
|
ucidef_add_gpio_switch "io14" "IO#14" "14"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|