openwrt/package/base-files/files/lib/upgrade
Daniel Golle 6fe3852d47
base-files: more robust sysupgrade on NAND
Make sure sysupgrade on NAND also works in case of UBI volumes having
index >9. While at it, also make sure UBI device is detected and abort
in case it isn't. Use Shell built-in shorthand ':' instead of 'true'.

Fixes #9708
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 0dbca1b2ba)
2022-04-15 14:11:59 +01:00
..
keep.d base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
common.sh base-files: upgrade: fix efi partitions size calculation 2021-12-27 13:51:41 +01:00
do_stage2 treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup 2019-09-11 09:05:35 +02:00
emmc.sh base-files: Align rootfs_data upgrades to 64KiB on eMMC 2022-03-16 17:50:06 +01:00
fwtool.sh base-files: change logging for upgrade on fwtool 2021-05-17 01:00:14 +02:00
legacy-sdcard.sh base-files: rename 'sdcard' to 'legacy-sdcard' 2021-08-16 12:22:17 +01:00
nand.sh base-files: more robust sysupgrade on NAND 2022-04-15 14:11:59 +01:00
stage2 base-files: make sure tools are present in sysupgrade ramdisk 2022-02-22 19:16:03 +00:00