diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-03-21 13:18:24 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-03-21 13:18:24 +0100 |
commit | 0d03bbfed690ac4a025e90346a673b8607742122 (patch) | |
tree | 27a7d9904a5e5409c7efadf64e5c126946bc5bf2 /SOURCES/mod-sign.sh | |
parent | d6d4fd75919f9e864611d09547f97e7136e1b22d (diff) | |
download | kernel-fsync-0d03bbfed690ac4a025e90346a673b8607742122.tar.gz kernel-fsync-0d03bbfed690ac4a025e90346a673b8607742122.zip |
kernel 5.11.7
Diffstat (limited to 'SOURCES/mod-sign.sh')
-rwxr-xr-x | SOURCES/mod-sign.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SOURCES/mod-sign.sh b/SOURCES/mod-sign.sh index ed2bd62..1afe136 100755 --- a/SOURCES/mod-sign.sh +++ b/SOURCES/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 "*****************************" |