Message ID | 20190422123537.5852-8-freifunk@adrianschmutzler.de |
---|---|
State | Deferred |
Headers | show |
diff --git a/src/packages/fff/fff-network/files/lib/functions/fff/cpuport b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport new file mode 100644 index 00000000..b27b775f --- /dev/null +++ b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport @@ -0,0 +1,34 @@ +# Copyright 2019 Adrian Schmutzler +# License GPLv3 + +BOARD="$(uci get board.model.name)" + +case "$BOARD" in + tl-wr1043nd-v1) + CPUPORT="5t" + ;; + tl-wr1043nd-v2|\ + tl-wr1043nd-v3) + CPUPORT="6t" + ;; + cpe210-v2|\ + cpe210-v3|\ + tl-mr3020-v1|\ + tl-wa850re-v1|\ + tl-wa860re-v1|\ + tl-wa901nd-v2|\ + ubnt-bullet-m|\ + ubnt-loco-m|\ + ubnt-loco-m-xw|\ + ubnt-nano-m|\ + ubnt-pico-m|\ + ubnt-power-m-xw|\ + ubnt-unifi|\ + ubnt-unifiac-lite|\ + ubnt-unifiac-mesh) + CPUPORT="" + ;; + *) + CPUPORT="0t" + ;; +esac
Reviewed-by: Robert Langhammer <rlanghammer@web.de> Am 22.04.19 um 14:35 schrieb Adrian Schmutzler: > This provides the CPUPORT which is needed for the gateway firmware. > The script is supposed to be sourced. > > Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> > > --- > > Changes in v2/v3: > none > --- > .../fff-network/files/lib/functions/fff/cpuport | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 src/packages/fff/fff-network/files/lib/functions/fff/cpuport > > diff --git a/src/packages/fff/fff-network/files/lib/functions/fff/cpuport b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport > new file mode 100644 > index 00000000..b27b775f > --- /dev/null > +++ b/src/packages/fff/fff-network/files/lib/functions/fff/cpuport > @@ -0,0 +1,34 @@ > +# Copyright 2019 Adrian Schmutzler > +# License GPLv3 > + > +BOARD="$(uci get board.model.name)" > + > +case "$BOARD" in > + tl-wr1043nd-v1) > + CPUPORT="5t" > + ;; > + tl-wr1043nd-v2|\ > + tl-wr1043nd-v3) > + CPUPORT="6t" > + ;; > + cpe210-v2|\ > + cpe210-v3|\ > + tl-mr3020-v1|\ > + tl-wa850re-v1|\ > + tl-wa860re-v1|\ > + tl-wa901nd-v2|\ > + ubnt-bullet-m|\ > + ubnt-loco-m|\ > + ubnt-loco-m-xw|\ > + ubnt-nano-m|\ > + ubnt-pico-m|\ > + ubnt-power-m-xw|\ > + ubnt-unifi|\ > + ubnt-unifiac-lite|\ > + ubnt-unifiac-mesh) > + CPUPORT="" > + ;; > + *) > + CPUPORT="0t" > + ;; > +esac
This provides the CPUPORT which is needed for the gateway firmware. The script is supposed to be sourced. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- Changes in v2/v3: none --- .../fff-network/files/lib/functions/fff/cpuport | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/packages/fff/fff-network/files/lib/functions/fff/cpuport