Added nextboot, a systemd-boot entry selection shortcut script

This commit is contained in:
David Thurstenson 2020-10-05 23:36:04 -05:00
parent 603973931d
commit 88c678ca1a
1 changed files with 15 additions and 0 deletions

15
bin/nextboot Executable file
View File

@ -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