mirror of
https://git.proxmox.com/git/mirror_linux-firmware
synced 2025-07-09 22:45:52 +00:00
copy-firmware: Support additional compressor options
Any options following the compressor option --zstd or --xz are passed on to the compressor as additional options so that - for example - the compression level can be specified: $ ./copy-firmware.sh --zst -19 <destdir> Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
parent
58773db51e
commit
2bad80e7ed
@ -44,6 +44,14 @@ while test $# -gt 0; do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
if test "$compress" = "cat"; then
|
||||||
|
echo "ERROR: unknown command-line option: $1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
compress="$compress $1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if test "x$destdir" != "x"; then
|
if test "x$destdir" != "x"; then
|
||||||
echo "ERROR: unknown command-line options: $*"
|
echo "ERROR: unknown command-line options: $*"
|
||||||
|
Loading…
Reference in New Issue
Block a user