Removing old scripts, renaming and cleaning up

This commit is contained in:
2021-12-18 16:15:54 +02:00
parent f07536cc17
commit 13a7e95a52
7 changed files with 12 additions and 88 deletions

View File

@@ -1,4 +1,11 @@
#!/bin/bash
source $GIT_SCRIPTS/Okiru
WindowsEntry=$(efibootmgr | grep "Windows Boot Manager" | awk '{print $1}' | sed -e 's/Boot//g')
efibootmgr -n $WindowsEntry
reboot
if [[ -n $WindowsEntry ]]; then
debug "Found Windows entry: $WindowsEntry"
ok "Found Windows! Rebooting"
efibootmgr -n $WindowsEntry
reboot
else
error "Found no Windows entry. SAD!"
fi