dotfiles/scripts/windows
2015-02-04 23:38:22 +01:00

14 lines
181 B
Bash
Executable File

#!/bin/bash
# Acquire root
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
# Set bootnext
efibootmgr --bootnext 0000 #0000 is windows bootloader
# Reboot
systemctl reboot