target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[15.05/openwrt.git] / target / linux / adm5120 / base-files / lib / upgrade / platform.sh
index f067089..fab2b3d 100644 (file)
@@ -10,7 +10,7 @@ RAMFS_COPY_DATA=/lib/adm5120.sh
 platform_check_image() {
        local magic="$(get_magic_word "$1")"
 
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
 
        case "$board_name" in
        "ZyXEL"*|"Compex WP54 family")