On Thu, 23 May 2019 10:36:15 -0700 Vagrant Cascadian wrote:
Untested and refreshed patch against current git attached.
I wanted to extend this, but I ended up almost completely rewriting it:
Instead of only using a compressed kernel as-is, my implementation can
also decompress/recompress into a preferred format, with many more
Regardless of my MR,
+ local file="$1"
+ magic="$(od -x -N2 $file | head -1 | cut -d' ' -f2)"
If compress_type is called without an argument, od reads from stdin
which might cause flash-kernel to 'hang' unexpectedly. Quoting "$file"
instead exits in error.