14 lines
181 B
Bash
Executable File
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
|
|
|