X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2Ffiles%2Fnand.sh;fp=package%2Fsystem%2Fprocd%2Ffiles%2Fnand.sh;h=8b0564dca2ecf04754112dd971e4a8cdb6f9df54;hb=3373d2bd800d2890f3101002fa5f67f7a79545f2;hp=0c179cbb035c6f071f25ddca61bfdf2408e18c72;hpb=69f0e948ec5bfc5a4826a02fb59315f1afc49f6d;p=openwrt-github%2F.git diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 0c179cbb03..8b0564dca2 100644 --- a/package/system/procd/files/nand.sh +++ b/package/system/procd/files/nand.sh @@ -275,6 +275,10 @@ nand_upgrade_tar() { nand_do_upgrade_stage2() { local file_type=$(identify $1) + if type 'platform_nand_pre_upgrade' >/dev/null 2>/dev/null; then + platform_nand_pre_upgrade "$1" + fi + [ ! "$(find_mtd_index "$CI_UBIPART")" ] && CI_UBIPART="rootfs" case "$file_type" in