⛑ add bootloader selection

This commit is contained in:
Vladislav Nepogodin committed 2022-07-28 22:34:44 +04:00
1 parent 5b2b0616e2
commit 92adb14302
1 file changed
+14
@@ -37,6 +37,20 @@ Main() {
esac
mode=online # keep this line for now!
local _exitcode=$(yad --width 300 --title "Bootloader" \
--image=gnome-shutdown \
--button="Grub:2" \
--button="Systemd-boot:3" \
--text "Choose Bootloader:" ; echo $?)
if [[ "${_exitcode}" -eq 2 ]]; then
echo "GRUB!"
elif [[ ${_exitcode} -eq 3 ]]; then
echo "SYSTEMD-BOOT!"
else
exit
fi
cat <<EOF > $log
########## $log by $progname
########## Started (UTC): $(date -u "+%x %X")