aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorTony Ambardar <itugrok@yahoo.com>2022-12-02 23:13:22 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2023-01-01 21:45:34 +0100
commit4bda308657bb39f3ad4a0d294a89ac867b8801a7 (patch)
tree3cf098ae445f9e7d4539da4a1ca6f3a554bf5792 /package
parent2f1b73b70dcc9b7c73142205a530309a25b8410d (diff)
downloadupstream-4bda308657bb39f3ad4a0d294a89ac867b8801a7.tar.gz
upstream-4bda308657bb39f3ad4a0d294a89ac867b8801a7.tar.bz2
upstream-4bda308657bb39f3ad4a0d294a89ac867b8801a7.zip
base-files: stage2: add 'tail' to sysupgrade environment
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> (cherry picked from commit 9cbc825b30a60c4c4b466301b87e15e59b107f24)
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/upgrade/stage22
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2
index 5e0d73631b..0c1ffb5144 100755
--- a/package/base-files/files/lib/upgrade/stage2
+++ b/package/base-files/files/lib/upgrade/stage2
@@ -41,7 +41,7 @@ switch_to_ramfs() {
pivot_root mount_root reboot sync kill sleep \
md5sum hexdump cat zcat dd tar \
ls basename find cp mv rm mkdir rmdir mknod touch chmod \
- '[' printf wc grep awk sed cut \
+ '[' printf wc grep awk sed cut tail \
mtd partx losetup mkfs.ext4 nandwrite flash_erase \
ubiupdatevol ubiattach ubiblock ubiformat \
ubidetach ubirsvol ubirmvol ubimkvol \