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
This commit is contained in:
parent
a18b35a2f1
commit
4069a8e49c
1 changed files with 117 additions and 117 deletions
|
@ -14,120 +14,120 @@ platform_check_image() {
|
||||||
[ "$#" -gt 1 ] && return 1
|
[ "$#" -gt 1 ] && return 1
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
3g-6200n | \
|
3g150b|\
|
||||||
3g-6200nl | \
|
3g300m|\
|
||||||
3g150b | \
|
3g-6200n|\
|
||||||
3g300m | \
|
3g-6200nl|\
|
||||||
a5-v11 | \
|
a5-v11|\
|
||||||
air3gii | \
|
ai-br100|\
|
||||||
ai-br100 |\
|
air3gii|\
|
||||||
all0239-3g | \
|
all0239-3g|\
|
||||||
all0256n | \
|
all0256n|\
|
||||||
all5002 | \
|
all5002|\
|
||||||
all5003 | \
|
all5003|\
|
||||||
ar725w | \
|
ar725w|\
|
||||||
asl26555 | \
|
asl26555|\
|
||||||
awapn2403 | \
|
awapn2403|\
|
||||||
awm002-evb | \
|
awm002-evb|\
|
||||||
awm003-evb | \
|
awm003-evb|\
|
||||||
bc2 | \
|
bc2|\
|
||||||
broadway | \
|
broadway|\
|
||||||
carambola | \
|
carambola|\
|
||||||
cf-wr800n | \
|
cf-wr800n|\
|
||||||
d105 | \
|
d105|\
|
||||||
dap-1350 | \
|
dap-1350|\
|
||||||
dcs-930 | \
|
dcs-930|\
|
||||||
dcs-930l-b1 | \
|
dcs-930l-b1|\
|
||||||
dir-300-b1 | \
|
dir-300-b1|\
|
||||||
dir-300-b7 | \
|
dir-300-b7|\
|
||||||
dir-320-b1 | \
|
dir-320-b1|\
|
||||||
dir-600-b1 | \
|
dir-600-b1|\
|
||||||
dir-600-b2 | \
|
dir-600-b2|\
|
||||||
dir-615-d | \
|
dir-615-d|\
|
||||||
dir-615-h1 | \
|
dir-615-h1|\
|
||||||
dir-620-a1 | \
|
dir-620-a1|\
|
||||||
dir-620-d1 | \
|
dir-620-d1|\
|
||||||
dir-810l | \
|
dir-810l|\
|
||||||
e1700 | \
|
e1700|\
|
||||||
esr-9753 | \
|
esr-9753|\
|
||||||
f7c027 | \
|
f7c027|\
|
||||||
fonera20n | \
|
firewrt|\
|
||||||
freestation5 | \
|
fonera20n|\
|
||||||
firewrt |\
|
freestation5|\
|
||||||
pbr-m1 |\
|
hg255d|\
|
||||||
hg255d | \
|
hlk-rm04|\
|
||||||
hlk-rm04 | \
|
hpm|\
|
||||||
ht-tm02 | \
|
ht-tm02|\
|
||||||
hw550-3g | \
|
hw550-3g|\
|
||||||
ip2202 | \
|
ip2202|\
|
||||||
m2m | \
|
m2m|\
|
||||||
m3 | \
|
m3|\
|
||||||
m4 | \
|
m4|\
|
||||||
microwrt | \
|
microwrt|\
|
||||||
mlw221 | \
|
miniembplug|\
|
||||||
mlwg2 | \
|
miniembwifi|\
|
||||||
mofi3500-3gn | \
|
miwifi-mini|\
|
||||||
mpr-a1 | \
|
mlw221|\
|
||||||
mpr-a2 | \
|
mlwg2|\
|
||||||
mr-102n | \
|
mofi3500-3gn|\
|
||||||
mzk-w300nh2 | \
|
mpr-a1|\
|
||||||
mzk-dp150n | \
|
mpr-a2|\
|
||||||
nbg-419n | \
|
mr-102n|\
|
||||||
nw718 | \
|
mzk-dp150n|\
|
||||||
miniembwifi | \
|
mzk-w300nh2|\
|
||||||
hpm | \
|
nbg-419n|\
|
||||||
miniembplug | \
|
nw718|\
|
||||||
rt5350f-olinuxino | \
|
oy-0001|\
|
||||||
rt5350f-olinuxino-evb | \
|
pbr-m1|\
|
||||||
psr-680w | \
|
psr-680w|\
|
||||||
px-4885 | \
|
px-4885|\
|
||||||
re6500 | \
|
re6500|\
|
||||||
rp-n53 | \
|
rp-n53|\
|
||||||
rt-g32-b1 | \
|
rt5350f-olinuxino|\
|
||||||
rt-n10-plus | \
|
rt5350f-olinuxino-evb|\
|
||||||
rt-n13u | \
|
rt-g32-b1|\
|
||||||
rt-n14u | \
|
rt-n10-plus|\
|
||||||
rt-n15 | \
|
rt-n13u|\
|
||||||
rt-n56u | \
|
rt-n14u|\
|
||||||
rut5xx | \
|
rt-n15|\
|
||||||
sap-g3200u3 | \
|
rt-n56u|\
|
||||||
sl-r7205 | \
|
rut5xx|\
|
||||||
tew-691gr | \
|
sap-g3200u3|\
|
||||||
tew-692gr | \
|
sl-r7205|\
|
||||||
ur-326n4g |\
|
tew-691gr|\
|
||||||
ur-336un |\
|
tew-692gr|\
|
||||||
v22rw-2x2 | \
|
ur-326n4g|\
|
||||||
vocore | \
|
ur-336un|\
|
||||||
w150m | \
|
v22rw-2x2|\
|
||||||
w306r-v20 |\
|
vocore|\
|
||||||
w502u |\
|
w150m|\
|
||||||
whr-g300n |\
|
w306r-v20|\
|
||||||
whr-300hp2 |\
|
w502u|\
|
||||||
whr-600d |\
|
whr-1166d|\
|
||||||
whr-1166d |\
|
whr-300hp2|\
|
||||||
wsr-600 |\
|
whr-600d|\
|
||||||
wl-330n | \
|
whr-g300n|\
|
||||||
wl-330n3g | \
|
wl-330n|\
|
||||||
wl-351 | \
|
wl-330n3g|\
|
||||||
wl-341v3 | \
|
wl-341v3|\
|
||||||
wli-tx4-ag300n | \
|
wl-351|\
|
||||||
wzr-agl300nh | \
|
wli-tx4-ag300n|\
|
||||||
wmr-300 |\
|
wmr-300|\
|
||||||
wnce2001 | \
|
wnce2001|\
|
||||||
wr512-3gn |\
|
wr512-3gn|\
|
||||||
wr6202 |\
|
wr6202|\
|
||||||
zbt-wr8305rt |\
|
wrtnode|\
|
||||||
wrtnode |\
|
wsr-600|\
|
||||||
oy-0001 |\
|
wt1520|\
|
||||||
wt1520 |\
|
wt3020|\
|
||||||
wt3020 |\
|
wzr-agl300nh|\
|
||||||
x5 |\
|
x5|\
|
||||||
x8 |\
|
x8|\
|
||||||
miwifi-mini |\
|
y1|\
|
||||||
y1 |\
|
y1s|\
|
||||||
y1s |\
|
zbt-wa05|\
|
||||||
zte-q7 |\
|
zbt-wr8305rt|\
|
||||||
zbt-wa05)
|
zte-q7)
|
||||||
[ "$magic" != "27051956" ] && {
|
[ "$magic" != "27051956" ] && {
|
||||||
echo "Invalid image type."
|
echo "Invalid image type."
|
||||||
return 1
|
return 1
|
||||||
|
@ -148,9 +148,9 @@ platform_check_image() {
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
cy-swr1100 |\
|
cy-swr1100|\
|
||||||
dir-610-a1 |\
|
dir-610-a1|\
|
||||||
dir-645 |\
|
dir-645|\
|
||||||
dir-860l-b1)
|
dir-860l-b1)
|
||||||
[ "$magic" != "5ea3a417" ] && {
|
[ "$magic" != "5ea3a417" ] && {
|
||||||
echo "Invalid image type."
|
echo "Invalid image type."
|
||||||
|
|
Loading…
Reference in a new issue