diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-17 19:39:07 +0100 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-17 19:39:07 +0100 |
commit | 121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d (patch) | |
tree | 09aca67d95f46d2d6312807b723864452dc37b98 /mod-sign.sh | |
parent | 9d53a3102caf03deb8e8328dd586708b5328b853 (diff) | |
parent | c7a5157d4de03982fcd2e3cd1f035858153ab349 (diff) | |
download | kernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.tar.gz kernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.tar.xz kernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.zip |
merge origin/f32kernel-5.11.7-150.vanilla.1.fc32
Diffstat (limited to 'mod-sign.sh')
-rwxr-xr-x | mod-sign.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod-sign.sh b/mod-sign.sh index ed2bd62b6..1afe136e2 100755 --- a/mod-sign.sh +++ b/mod-sign.sh @@ -13,9 +13,9 @@ MODSECKEY=$1 MODPUBKEY=$2 moddir=$3 -modules=`find $moddir -type f -name '*.ko'` +modules=$(find "$moddir" -type f -name '*.ko') -NPROC=`nproc` +NPROC=$(nproc) [ -z "$NPROC" ] && NPROC=1 # NB: this loop runs 2000+ iterations. Try to be fast. @@ -27,7 +27,7 @@ done " DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop. RANDOMMOD=$(echo "$modules" | sort -R | head -n 1) -if [ "~Module signature appended~" != "$(tail -c 28 $RANDOMMOD)" ]; then +if [ "~Module signature appended~" != "$(tail -c 28 "$RANDOMMOD")" ]; then echo "*****************************" echo "*** Modules are unsigned! ***" echo "*****************************" |