1 Star 0 Fork 1

三是两听/unlocker

forked from kunge/unlocker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
efi-linux.sh 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
set -e
printf "EFI Unlocker 1.0.2 for VMware Workstation\n"
printf "=========================================\n"
printf "(c) Dave Parsons 2018-21\n\n"
# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
version=$(grep -i player.product.version /etc/vmware/config | cut -d'"' -f2- | rev | cut -c 2- | rev)
build=$(grep -i product.buildnumber /etc/vmware/config | cut -d'"' -f2- | rev | cut -c 2- | rev)
IFS='.' read -r -a product <<< "$version"
printf "VMware product version: %s.%s\n\n" "$version" "$build"
#printf "Major: ${product[0]}\n"
#printf "Minor: ${product[1]}\n"
#printf "Revision: ${product[2]}\n"
#printf "Build: ${build}\n"
# Check version is 14+
if [[ ${product[0]} -lt 12 ]]; then
printf "VMware Workatation/Player version 12 or greater required!\n"
exit 1
fi
if [[ ${product[0]} -eq 12 ]]; then
printf "Extracting firmware...\n"
/usr/lib/bin/vmware-vmx -e EFI32 > EFI32.ROM
/usr/lib/bin/vmware-vmx -e EFI64 > EFI64.ROM
else
printf "Copying firmware...\n"
cp -v /usr/lib/vmware/roms/EFI32.ROM .
cp -v /usr/lib/vmware/roms/EFI64.ROM .
fi
printf "Patching 32-bit ROM...\n"
./uefipatch/UEFIPatch.linux EFI32.ROM ./uefipatch/efi-patches.txt -o EFI32-MACOS.ROM
rm -fv EFI32.ROM
printf "\nPatching 64-bit ROM...\n"
./uefipatch/UEFIPatch.linux EFI64.ROM ./uefipatch/efi-patches.txt -o EFI64-MACOS.ROM
rm -fv EFI64.ROM
printf "\nFinished!\n"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/join_huangjie/unlocker.git
git@gitee.com:join_huangjie/unlocker.git
join_huangjie
unlocker
unlocker
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385