target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt/svn-archive/archive.git] / target / linux / atheros / base-files / lib / upgrade / platform.sh
index d4daaacb95119a87770432cbe73672275ea68d81..d44b8fad80962d08c60193aa4c9f788cf0369426 100644 (file)
@@ -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