base-files: add an ugly hack for nand to sysupgrade
authorJohn Crispin <john@openwrt.org>
Wed, 11 Jun 2014 12:59:37 +0000 (12:59 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 11 Jun 2014 12:59:37 +0000 (12:59 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41126

package/base-files/files/sbin/sysupgrade

index cd224c633a968590cc6ef05e28d8df3d7acb32ea..80fbfffa50a92048a89f8bf06c059ad36d9fab27 100755 (executable)
@@ -126,6 +126,8 @@ sysupgrade_image_check="platform_check_image"
 
 include /lib/upgrade
 
+[ "$1" = "nand" ] && nand_do_upgrade $@
+
 do_save_conffiles() {
        local conf_tar="${1:-$CONF_TAR}"