Created
May 14, 2020 21:51
-
-
Save ravage/14450b2f2b4c83c231d9d6375e9f2893 to your computer and use it in GitHub Desktop.
Hopefully set previous boot order after unattended PXE installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
test -d /sys/firmware/efi && efibootmgr -o $(efibootmgr | grep "BootOrder" | sed -e 's/BootOrder\: 0000,\(.*\)/\1,0000/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment