Added nextboot, a systemd-boot entry selection shortcut script
This commit is contained in:
parent
603973931d
commit
88c678ca1a
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PS3="Select next boot entry: "
|
||||
COLUMNS=1
|
||||
select entry in $(systemctl --boot-loader-entry=help) BIOS; do
|
||||
if [[ "$entry" == "BIOS" ]]; then
|
||||
sudo systemctl reboot --firmware-setup
|
||||
exit 0
|
||||
else
|
||||
sudo systemctl reboot --boot-loader-menu=1 --boot-loader-entry="$entry"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue