6 lines
343 B
Bash
6 lines
343 B
Bash
|
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
|