# SPDX-License-Identifier: GPL-3.0-only # # Copyright 2019 Adrian Schmutzler get_cpu_port() { local BOARD=$(uci get board.model.name) local CPUPORT case "$BOARD" in tplink,c50-v3|\ tplink,c50-v4|\ tplink,tl-wr1043nd-v2|\ tplink,tl-wr1043nd-v3|\ tl-wr841n-v13|\ r6220|\ ubnt-erx|\ ubnt-erx-sfp) CPUPORT="6t" ;; tplink,cpe210-v2|\ tplink,cpe210-v3|\ tplink,tl-mr3020-v1|\ tplink,tl-wa850re-v1|\ tplink,tl-wa860re-v1|\ tplink,tl-wa901nd-v2|\ ubnt,bullet-m|\ ubnt,nanostation-loco-m|\ ubnt,nanostation-loco-m-xw|\ ubnt,nanostation-m|\ ubnt,picostation-m|\ ubnt,unifi|\ ubnt,unifiac-mesh) CPUPORT="" ;; tplink,tl-wr1043nd-v1) CPUPORT="5t" ;; *) CPUPORT="0t" ;; esac echo "$CPUPORT" }