Showing 1 changed files with 12 additions and 0 deletions
+12
sign-module
... ...
@@ -0,0 +1,12 @@
1
+#!/bin/zsh
2
+# bash compatible
3
+
4
+for c in nvidia-current vboxdrv; do
5
+    for modfile in $(dirname $(modinfo -n $c))/*.ko; do
6
+        sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file \
7
+            sha256 \
8
+            /root/module-signing/MOK.priv \
9
+            /root/module-signing/MOK.der \
10
+            "$modfile"
11
+    done
12
+done