Skip to content

Instantly share code, notes, and snippets.

@Daemoen
Created December 7, 2016 21:43
Show Gist options
  • Save Daemoen/b265b406c4a4eb1e3b8cfce1c1e4fbfc to your computer and use it in GitHub Desktop.
Save Daemoen/b265b406c4a4eb1e3b8cfce1c1e4fbfc to your computer and use it in GitHub Desktop.
Virtualbox Driver Signing Script
#!/usr/bin/env bash
for drv in vboxdrv vboxnetflt vboxnetadp vboxpci
do
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n $drv)
modprobe $drv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment