Changeset 47879


Ignore:
Timestamp:
2015-12-12T08:37:45+01:00 (2 years ago)
Author:
blogic
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/procd/files/nand.sh

    r47489 r47879  
    275275nand_do_upgrade_stage2() { 
    276276        local file_type=$(identify $1) 
     277 
     278        if type 'platform_nand_pre_upgrade' >/dev/null 2>/dev/null; then 
     279                platform_nand_pre_upgrade "$1" 
     280        fi 
    277281 
    278282        [ ! "$(find_mtd_index "$CI_UBIPART")" ] && CI_UBIPART="rootfs" 
Note: See TracChangeset for help on using the changeset viewer.