mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
15 lines
292 B
Bash
Executable File
15 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# remove old entries
|
|
for bootentry in $(efibootmgr | head -n 3 | tail -n 1 | cut -d' ' -f2- | sed 's/,/\n/g'); do
|
|
sudo efibootmgr -qBb $bootentry
|
|
done
|
|
|
|
# add all entries back
|
|
for bootscript in *.efi; do
|
|
./$bootscript
|
|
done
|
|
|
|
# set bootorder
|
|
sudo efibootmgr --bootorder 0000,0001
|