adm8668: Remove unmaintained target
[openwrt/openwrt.git] / target / linux / au1000 / base-files / lib / upgrade / platform.sh
index 71744e610bee086efb8c80e6f4bd4463f3dcf413..7beb4a0d0600b04ea682a3a235ef117685add7f8 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 && \
@@ -24,13 +24,3 @@ platform_do_upgrade() {
        get_image "$1" | tar -Oxvf - $KERNEL_IMG | mtd write - "kernel"
        get_image "$1" | tar -Oxvf - $ROOTFS_IMG | mtd $conf write - "rootfs"
 }
-
-disable_watchdog() {
-        killall watchdog
-        ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
-                echo 'Could not disable watchdog'
-                return 1
-        }
-}
-
-append sysupgrade_pre_upgrade disable_watchdog