You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
297 B
Bash
15 lines
297 B
Bash
#!/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,0002
|