From 99c04afbce6302b6b6e6d0ad3f4bbac2bdf0f2d6 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 12 Nov 2023 22:23:23 +0300 Subject: [PATCH] Modify script to find sign-file --- SOURCES/mod-sign.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SOURCES/mod-sign.sh b/SOURCES/mod-sign.sh index c5f0c89..4322ab9 100755 --- a/SOURCES/mod-sign.sh +++ b/SOURCES/mod-sign.sh @@ -14,6 +14,7 @@ MODPUBKEY=$2 moddir=$3 modules=$(find "$moddir" -type f -name '*.ko') +sign_file=$(find . -name 'sign-file') NPROC=$(nproc) [ -z "$NPROC" ] && NPROC=1 @@ -21,7 +22,7 @@ NPROC=$(nproc) # NB: this loop runs 2000+ iterations. Try to be fast. echo "$modules" | xargs -r -n16 -P $NPROC sh -c " for mod; do - ./scripts/sign-file sha256 $MODSECKEY $MODPUBKEY \$mod + $sign_file sha256 $MODSECKEY $MODPUBKEY \$mod rm -f \$mod.sig \$mod.dig done " DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop.