base-files: stage2: add 'tail' to sysupgrade environment
authorTony Ambardar <itugrok@yahoo.com>
Sat, 3 Dec 2022 07:13:22 +0000 (23:13 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Sat, 31 Dec 2022 13:02:38 +0000 (05:02 -0800)
This is used to access footer data in firmare files, and is simpler and
less error-prone than using 'dd' with calculated offsets.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/base-files/files/lib/upgrade/stage2

index 6314d4064671ba3e88eaef4576b7c188851e740a..f4db88d31ea18f0016ae08828f9b7d6a204db43d 100755 (executable)
@@ -41,7 +41,7 @@ switch_to_ramfs() {
                pivot_root mount_root reboot sync kill sleep            \
                md5sum hexdump cat zcat dd tar gzip                     \
                ls basename find cp mv rm mkdir rmdir mknod touch chmod \
-               '[' printf wc grep awk sed cut sort                     \
+               '[' printf wc grep awk sed cut sort tail                \
                mtd partx losetup mkfs.ext4 nandwrite flash_erase       \
                ubiupdatevol ubiattach ubiblock ubiformat               \
                ubidetach ubirsvol ubirmvol ubimkvol                    \