add in_outputs shell function which ensures umask is set

This commit is contained in:
Daniel Barlow
2023-03-03 23:06:18 +00:00
parent e0ea576674
commit 38756af1c1
5 changed files with 9 additions and 8 deletions

View File

@@ -78,7 +78,7 @@
part=$(basename $(dirname $(grep -l art /sys/class/mtd/*/name)))
echo ART partition is ''${part-unset}
test -n "$part" || exit 1
(cd $(mkoutputs ${name}); umask 0027
(in_outputs ${name}
dd if=/dev/$part of=data iflag=skip_bytes,fullblock bs=${toString size} skip=${toString offset} count=1
)
'';