Skip to content

Instantly share code, notes, and snippets.

@ravage
Created May 14, 2020 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravage/14450b2f2b4c83c231d9d6375e9f2893 to your computer and use it in GitHub Desktop.
Save ravage/14450b2f2b4c83c231d9d6375e9f2893 to your computer and use it in GitHub Desktop.
Hopefully set previous boot order after unattended PXE installation
#!/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