OpenCore-Config-iMac/EFI/OC/create_vault_micha.sh

6 lines
343 B
Bash
Raw Normal View History

2020-02-05 18:48:42 +01:00
cd /Volumes/OC-BOOT/EFI/OC
/Volumes/OC-BOOT/EFI/OC/Tools/CreateVault/create_vault.sh .
/Volumes/OC-BOOT/EFI/OC/Tools/CreateVault/RsaTool -sign vault.plist vault.sig vault.pub
off=$(($(strings -a -t d OpenCore.efi | grep "=BEGIN OC VAULT=" | cut -f1 -d' ')+16))
dd of=OpenCore.efi if=vault.pub bs=1 seek=$off count=528 conv=notrunc
rm vault.pub