Theming: move $theme_name out of theming.cfg
This commit is contained in:
parent
056e1bee75
commit
676cc574e1
3 changed files with 12 additions and 4 deletions
|
@ -25,8 +25,14 @@ export imgdevpath rootuuid
|
|||
set pager=1
|
||||
|
||||
# Get theming
|
||||
if [ -f "${prefix}/theming.cfg" ]; then
|
||||
#source "${prefix}/theming.cfg"
|
||||
if [ -f "${prefix}/mytheme.cfg" ]; then
|
||||
if [ -f "${prefix}/theming.cfg" ]; then
|
||||
# load theme_name
|
||||
source "${prefix}/mytheme.cfg"
|
||||
|
||||
# set theme
|
||||
source "${prefix}/theming.cfg"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Start the menuentries
|
||||
|
|
2
boot/grub/mytheme.cfg
Normal file
2
boot/grub/mytheme.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
set theme_name="Cyberpunk"
|
||||
export theme_name
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
set theme_name="Cyberpunk"
|
||||
# Make sure to have ${theme_name} defined!
|
||||
#
|
||||
insmod jpeg
|
||||
insmod png
|
||||
|
||||
|
|
Loading…
Reference in a new issue