-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Sign the linux kernel drivers so vmware can load vmmon kernel module. | ||
function vmware-sign-drivers() { | ||
echo "Failed to load vmmon kernel module - https://kb.vmware.com/s/article/2146460" | ||
mkdir ~/vmnet-fix | ||
cd ~/vmnet-fix | ||
sudo vmware-modconfig --console --install-all | ||
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/" | ||
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon) | ||
sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet) | ||
sudo mokutil --import MOK.der | ||
cd $HOME | ||
echo "Reboot your machine. Follow the instructions to complete the enrollment from the UEFI console." | ||
} | ||
|
||
# Setup VPN command | ||
if [ -x "$(command -v openfortivpn)" ]; then | ||
alias fiftytwo_vpn="sudo bash -c 'openfortivpn -c $HOME/.fiftytwo_forti_config &'" | ||
fi |