X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm47xx%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=48885b16329ce33fb06f20f680cf822504c74275;hb=803e9c704e9b69f229f9aaefc3a03ad668c17051;hp=644f3c1e66c37c542b277e35c788aacf7675a251;hpb=f72e9d8223634253c0dc54c9aed937f7793949be;p=openwrt.git diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh index 644f3c1e66..48885b1632 100644 --- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh @@ -1,7 +1,7 @@ PART_NAME=firmware platform_check_image() { - [ "$ARGC" -gt 1 ] && return 1 + [ "$#" -gt 1 ] && return 1 case "$(get_magic_word "$1")" in # .trx files