scripts / sign-module /
Newer Older
12 lines | 0.335kb
add signing module routine f...
Sébastien MARQUE authored on 2020-09-29
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