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 cd224c6..80fbfff 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}"