Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root" 1>&2
- exit 1
- fi
- ENTRY=$(efibootmgr | grep 'Windows Boot Manager' | sed 's/[^0-9]*//g')
- efibootmgr -n $ENTRY
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement