scripts / sign-module /
288ed28 4 years ago
1 contributor
12 lines | 0.335kb
#!/bin/zsh
# bash compatible

for c in nvidia-current vboxdrv; do
    for modfile in $(dirname $(modinfo -n $c))/*.ko; do
        sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file \
            sha256 \
            /root/module-signing/MOK.priv \
            /root/module-signing/MOK.der \
            "$modfile"
    done
done