ramips: be consistent with case statement in base-files/lib/upgrade/platform.sh

Always use "|\" (without spaces) and keep boards in alphabetical order.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46633
lede-17.01
John Crispin 2015-08-17 06:01:49 +00:00
parent a18b35a2f1
commit 4069a8e49c
1 changed files with 117 additions and 117 deletions

View File

@ -14,13 +14,13 @@ platform_check_image() {
[ "$#" -gt 1 ] && return 1
case "$board" in
3g-6200n | \
3g-6200nl | \
3g150b|\
3g300m|\
3g-6200n|\
3g-6200nl|\
a5-v11|\
air3gii | \
ai-br100|\
air3gii|\
all0239-3g|\
all0256n|\
all5002|\
@ -51,12 +51,12 @@ platform_check_image() {
e1700|\
esr-9753|\
f7c027|\
firewrt|\
fonera20n|\
freestation5|\
firewrt |\
pbr-m1 |\
hg255d|\
hlk-rm04|\
hpm|\
ht-tm02|\
hw550-3g|\
ip2202|\
@ -64,25 +64,27 @@ platform_check_image() {
m3|\
m4|\
microwrt|\
miniembplug|\
miniembwifi|\
miwifi-mini|\
mlw221|\
mlwg2|\
mofi3500-3gn|\
mpr-a1|\
mpr-a2|\
mr-102n|\
mzk-w300nh2 | \
mzk-dp150n|\
mzk-w300nh2|\
nbg-419n|\
nw718|\
miniembwifi | \
hpm | \
miniembplug | \
rt5350f-olinuxino | \
rt5350f-olinuxino-evb | \
oy-0001|\
pbr-m1|\
psr-680w|\
px-4885|\
re6500|\
rp-n53|\
rt5350f-olinuxino|\
rt5350f-olinuxino-evb|\
rt-g32-b1|\
rt-n10-plus|\
rt-n13u|\
@ -101,33 +103,31 @@ platform_check_image() {
w150m|\
w306r-v20|\
w502u|\
whr-g300n |\
whr-1166d|\
whr-300hp2|\
whr-600d|\
whr-1166d |\
wsr-600 |\
whr-g300n|\
wl-330n|\
wl-330n3g|\
wl-351 | \
wl-341v3|\
wl-351|\
wli-tx4-ag300n|\
wzr-agl300nh | \
wmr-300|\
wnce2001|\
wr512-3gn|\
wr6202|\
zbt-wr8305rt |\
wrtnode|\
oy-0001 |\
wsr-600|\
wt1520|\
wt3020|\
wzr-agl300nh|\
x5|\
x8|\
miwifi-mini |\
y1|\
y1s|\
zte-q7 |\
zbt-wa05)
zbt-wa05|\
zbt-wr8305rt|\
zte-q7)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1