diff options
author | John Crispin <john@openwrt.org> | 2015-12-12 07:37:45 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-12-12 07:37:45 +0000 |
commit | f99c61a94ad11d401690a64ef83e152a098c850f (patch) | |
tree | 3dc2aa7284d7f7cdcd2ceacbe1be0143ebbe1ee2 /package/system/procd/files | |
parent | abc84551c04783c2d59fdd4aa474d5a82ed30cf5 (diff) | |
download | upstream-f99c61a94ad11d401690a64ef83e152a098c850f.tar.gz upstream-f99c61a94ad11d401690a64ef83e152a098c850f.tar.bz2 upstream-f99c61a94ad11d401690a64ef83e152a098c850f.zip |
procd: add 'platform_nand_pre_upgrade'
Add 'platform_nand_pre_upgrade' callback to allow platform specific
preparation right before flashinng, when already in ramdisk.
Example uses might be setting correct values for CI_{KERNPART,UBIPART}.
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
SVN-Revision: 47879
Diffstat (limited to 'package/system/procd/files')
-rw-r--r-- | package/system/procd/files/nand.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |