mirror of
https://github.com/Alee14/vmware-secureboot-sign-linux.git
synced 2025-01-22 08:11:53 -05:00
20 lines
445 B
Bash
Executable file
20 lines
445 B
Bash
Executable file
#!/bin/bash
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "This script must be run as root. Exiting."
|
|
exit 1
|
|
fi
|
|
|
|
/usr/src/kernels/$(uname -r)/scripts/sign-file \
|
|
sha256 \
|
|
MOK.priv \
|
|
MOK.der \
|
|
/lib/modules/$(uname -r)/misc/vmmon.ko
|
|
echo "Signed vmmon"
|
|
/usr/src/kernels/$(uname -r)/scripts/sign-file \
|
|
sha256 \
|
|
MOK.priv \
|
|
MOK.der \
|
|
/lib/modules/$(uname -r)/misc/vmnet.ko
|
|
echo "Signed vmnet"
|
|
|
|
modprobe vmmon
|