enable sysupgrade on the WRT160Nl
authorGabor Juhos <juhosg@openwrt.org>
Sun, 9 Aug 2009 14:12:24 +0000 (14:12 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 9 Aug 2009 14:12:24 +0000 (14:12 +0000)
SVN-Revision: 17202

target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index a5cb354c92fbc136715513110ffeaaf2bd10d18c..c4c56afdd0ef8b8bc47e007a8717f95b8b5f7493 100755 (executable)
@@ -21,13 +21,20 @@ platform_check_image() {
                }
                return 0
                ;;
-        tl-wr741nd | tl-wr941nd)
+       tl-wr741nd | tl-wr941nd)
                [ "$magic" != "0100" ] && {
                        echo "Invalid image type."
                        return 1
                }
                return 0
                ;;
+       wrt160nl)
+               [ "$magic" != "4e4c" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."