target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt/svn-archive/archive.git] / target / linux / au1000 / base-files / lib / upgrade / platform.sh
index 71744e610bee086efb8c80e6f4bd4463f3dcf413..1a9d151c8a282bd6fde26ffda4a218c5c975ace5 100644 (file)
@@ -2,7 +2,7 @@ KERNEL_IMG="openwrt-au1000-au1500-vmlinux.bin"
 ROOTFS_IMG="openwrt-au1000-au1500-root.fs"
 
 platform_check_image() {
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
        case "$(get_magic_word "$1")" in
                6f70)
                        ( get_image "$1" | tar -tf - $KERNEL_IMG >/dev/null && \