diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-17 19:28:27 +0100 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-17 19:28:27 +0100 |
commit | 36612881cdd4f86e0750ab3a7149a64d1a717197 (patch) | |
tree | f120aa714ac976ab052e3c93c4967722b97c880d /mod-sign.sh | |
parent | 7ab9566018bce84f450016d48f15f7bb9f0ed066 (diff) | |
parent | fbd0b1b80f0345cff6447216d2c9ad509c13be53 (diff) | |
download | kernel-36612881cdd4f86e0750ab3a7149a64d1a717197.tar.gz kernel-36612881cdd4f86e0750ab3a7149a64d1a717197.tar.xz kernel-36612881cdd4f86e0750ab3a7149a64d1a717197.zip |
merge originkernel-5.11.7-250.vanilla.1.fc33
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 "*****************************" |