Skip to content

Commit

Permalink
Minor improvements in the configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mexit committed Mar 24, 2024
1 parent bd50877 commit 8239008
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/grub.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ set imgdevpath="/dev/disk/by-uuid/$rootuuid"
set pager=1
set iso_dir="/ISOs"
set os_dir="/os_files"
set theme_path="/MultiOS-USB/themes/MultiOS-USB/theme.txt"
export dev rootuuid imgdevpath iso_dir os_dir

if [ -e "$theme_path" ]; then
set theme="$theme_path"
export theme
fi

if loadfont unicode; then
if [ "${grub_platform}" == "efi" ]; then
set gfxmode=auto
Expand All @@ -43,11 +49,6 @@ if loadfont unicode; then
terminal_output gfxterm
fi

if [ -e "/MultiOS-USB/themes/MultiOS-USB/theme.txt" ]; then
set theme="/MultiOS-USB/themes/MultiOS-USB/theme.txt"
export theme
fi

function find_grub_cfg {
submenu "Detect and boot from GRUB config file (grub.cfg) -->" {
grubcfg_found=false
Expand Down

0 comments on commit 8239008

Please sign in to comment.