X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fatheros%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=d44b8fad80962d08c60193aa4c9f788cf0369426;hp=d4daaacb95119a87770432cbe73672275ea68d81;hb=c48ec47b0674f00f0db430c779883b18b8904664;hpb=bb376a489fccd5b0f19fba5dfa00500b635bb433 diff --git a/target/linux/atheros/base-files/lib/upgrade/platform.sh b/target/linux/atheros/base-files/lib/upgrade/platform.sh index d4daaacb95..d44b8fad80 100644 --- a/target/linux/atheros/base-files/lib/upgrade/platform.sh +++ b/target/linux/atheros/base-files/lib/upgrade/platform.sh @@ -31,7 +31,7 @@ platform_find_kernelpart() { } platform_check_image() { - [ "$ARGC" -gt 1 ] && return 1 + [ "$#" -gt 1 ] && return 1 case "$(get_magic_word "$1")" in # Combined Image