mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-13 02:14:53 +00:00
bcm53xx: sysupgrade: improve NAND warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45546
This commit is contained in:
parent
5b9d70c888
commit
457d9caf4d
@ -141,7 +141,10 @@ platform_pre_upgrade() {
|
||||
|
||||
# Firmwares without UBI image should be flashed "normally"
|
||||
local root_type=$(identify $dir/root)
|
||||
[ "$root_type" != "ubi" ] && return
|
||||
[ "$root_type" != "ubi" ] && {
|
||||
echo "Provided firmware doesn't use UBI for rootfs."
|
||||
return
|
||||
}
|
||||
|
||||
# Prepare TRX file with just a kernel that will replace current one
|
||||
local linux_length=$(grep "\"linux\"" /proc/mtd | sed "s/mtd[0-9]*:[ \t]*\([^ \t]*\).*/\1/")
|
||||
@ -174,7 +177,7 @@ platform_do_upgrade() {
|
||||
local trx="$1"
|
||||
|
||||
[ "$(platform_flash_type)" == "nand" ] && {
|
||||
echo "Flashing firmware without UBI for rootfs. All erase counters will be lost."
|
||||
echo "Writing whole image to NAND flash. All erase counters will be lost."
|
||||
}
|
||||
|
||||
case "$file_type" in
|
||||
|
Loading…
Reference in New Issue
Block a user