2
0
forked from Ivasoft/openwrt

ramips: mt7621: harmonize naming scheme for Mikrotik

So far, image/device/board names for Mikrotik devices in mt7621 have
been used quite inconsistently.

This patch harmonizes the naming scheme by applying the same style
as used lately in ath79, i.e. using "RouterBOARD" as separate word
in the model name (instead of RB prefix for the number) and deriving
the board/device name from that (= make lower case and replace spaces
by hyphens).

This style has already been used for most the model/DEVICE_MODEL
variables in mt7621, so this is essentially just adjusting the remaining
variables to that.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler
2020-04-07 10:34:33 +02:00
parent 48b4aab80c
commit f761f4052c
9 changed files with 42 additions and 32 deletions

View File

@@ -4,11 +4,19 @@
. /lib/functions/migrations.sh
board=$(board_name)
boardonly="${board##*,}"
case "$board" in
mikrotik,routerboard-750gr3)
migrate_leds "^rb750gr3:=$boardonly:"
mikrotik,routerboard-m11g)
migrate_leds "^rbm11g:=$boardonly:"
mikrotik,routerboard-m33g)
migrate_leds "^rbm33g:=$boardonly:"
netgear,wndr3700-v5)
migrate_leds "^wndr3700v5:=wndr3700-v5:"
migrate_leds "^wndr3700v5:=$boardonly:"
;;
esac
migrations_apply system