projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm47xx
/
base-files
/
lib
/
upgrade
/
platform.sh
1
PART_NAME
=
firmware
2
3
platform_check_image
() {
4
[
"
$#
"
-gt
1
] &&
return
1
5
6
case
"$(get_magic_word "
$1
")"
in
7
# .trx files
8
4844
)
return
0
;;
9
*)
10
echo
"Invalid image type. Please use only .trx files"
11
return
1
12
;;
13
esac
14
}
15
16
# use default for platform_do_upgrade()