#!/bin/bash for drivername in vboxdrv vboxnetflt vboxnetadp vboxpci do sudo /lib/modules/$(uname -r)/build/scripts/sign-file \ sha256 ./ownerkey.priv ./ownerkey.der \ $(modinfo -n $drivername) done