6 lines
182 B
Bash
Executable file
6 lines
182 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
next_boot_entry_n="$(efibootmgr | awk 'match($0,/Boot([0-9]+)\*? Windows Boot Manager/,a){print a[1];exit}')"
|
|
|
|
sudo efibootmgr -n "$next_boot_entry_n"
|
|
sudo reboot
|