Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrudolfoba authored May 19, 2023
1 parent 080af0e commit b441034
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions install-Clover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,17 @@ then
&& sudo mv /esp/efi/Microsoft/Boot/bootmgfw.efi /esp/efi/Microsoft \
&& sudo mv /esp/efi/boot/bootx64.efi /esp/efi/boot/bootx64.efi.orig \
&& sudo cp /esp/efi/clover/cloverx64.efi /esp/efi/boot/bootx64.efi
sudo sed -i '/<key>DefaultLoader<\/key>/!b;n;c\\t\t<string>\\EFI\\HackBGRT\\HackBGRT\.efi<\/string>' /esp/efi/clover/config.plist
if [ "$Choice" == "Windows" ]
then
sudo sed -i '/<key>DefaultLoader<\/key>/!b;n;c\\t\t<string>\\EFI\\HackBGRT\\HackBGRT\.efi<\/string>' /esp/efi/clover/config.plist
fi
else
# Windows is not installed on the internal SSD - do not use the custom splash screen!
#sudo sed -i 's/\\EFI\\HackBGRT\\HackBGRT\.efi/\\EFI\\MICROSOFT\\bootmgfw\.efi/g' /esp/efi/clover/config.plist
sudo sed -i '/<key>DefaultLoader<\/key>/!b;n;c\\t\t<string>\\EFI\\MICROSOFT\\bootmgfw\.efi<\/string>' /esp/efi/clover/config.plist
if [ "$Choice" == "Windows" ]
then
sudo sed -i '/<key>DefaultLoader<\/key>/!b;n;c\\t\t<string>\\EFI\\MICROSOFT\\bootmgfw\.efi<\/string>' /esp/efi/clover/config.plist
fi
sudo sed -i 's/\\EFI\\HackBGRT\\HackBGRT\.efi/\\EFI\\MICROSOFT\\bootmgfw\.efi/g' /esp/efi/clover/config.plist
fi

# re-arrange the boot order and make Clover the priority!
Expand Down Expand Up @@ -324,10 +330,12 @@ then
# Windows is installed on the internal SSD - use the custom splash screen!
sudo sed -i '/<key>DefaultLoader<\\/key>/!b;n;c\\\t\\t<string>\\\EFI\\\HackBGRT\\\HackBGRT\\.efi<\\/string>' /esp/efi/clover/config.plist
sudo sed -i '/<key>DefaultVolume<\\/key>/!b;n;c\\\t\\t<string>esp<\\/string>' /esp/efi/clover/config.plist
sudo sed -i 's/\\\EFI\\\Microsoft\\\bootmgfw\.efi/\\\EFI\\\HackBGRT\\\HackBGRT\.efi/g' /esp/efi/clover/config.plist
else
# Windows is not installed on the internal SSD - do not use the custom splash screen!
sudo sed -i '/<key>DefaultLoader<\\/key>/!b;n;c\\\t\\t<string>\\\EFI\\\MICROSOFT\\\bootmgfw\\.efi<\\/string>' /esp/efi/clover/config.plist
sudo sed -i '/<key>DefaultVolume<\\/key>/!b;n;c\\\t\\t<string>esp<\\/string>' /esp/efi/clover/config.plist
sudo sed -i 's/\\\EFI\\\HackBGRT\\\HackBGRT\.efi/\\\EFI\\\MICROSOFT\\\bootmgfw\.efi/g' /esp/efi/clover/config.plist
fi
zenity --warning --title "Clover Toolbox" --text "Windows is now the default boot entry in Clover!" --width 400 --height 75
Expand Down Expand Up @@ -388,6 +396,7 @@ then
# delete dolphin root extension
rm ~/.local/share/kservices5/ServiceMenus/open_as_root.desktop
rm -rf ~/SteamDeck-Clover-dualboot
rm -rf ~/1Clover-tools/*
rm ~/Desktop/Clover-Toolbox
Expand Down

0 comments on commit b441034

Please sign in to comment.