Skip to content

Commit

Permalink
Added support for 69057
Browse files Browse the repository at this point in the history
  • Loading branch information
pocopico committed Oct 24, 2023
1 parent 01fb7be commit 8042db0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/grub-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ set default="0"
set timeout="5"
set timeout_style="menu"


if [ -s $prefix/grubenv ]; then
load_env --file $prefix/grubenv --skip-sig
set has_env="1"
if [ -n "${saved_entry}" ]; then
set default="${saved_entry}"
fi
else
set has_env="0"
echo "WARN: failed to load env. Default choice will NOT be saved!"
fi


function savedefault {
saved_entry="${chosen}"
save_env --file $prefix/grubenv saved_entry
Expand Down

0 comments on commit 8042db0

Please sign in to comment.