#!/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