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
|
set pager=1
|
||||||
|
|
||||||
# Get theming
|
# Get theming
|
||||||
if [ -f "${prefix}/theming.cfg" ]; then
|
if [ -f "${prefix}/mytheme.cfg" ]; then
|
||||||
#source "${prefix}/theming.cfg"
|
if [ -f "${prefix}/theming.cfg" ]; then
|
||||||
|
# load theme_name
|
||||||
|
source "${prefix}/mytheme.cfg"
|
||||||
|
|
||||||
|
# set theme
|
||||||
|
source "${prefix}/theming.cfg"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the menuentries
|
# 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 @@
|
||||||
|
# Make sure to have ${theme_name} defined!
|
||||||
set theme_name="Cyberpunk"
|
#
|
||||||
insmod jpeg
|
insmod jpeg
|
||||||
insmod png
|
insmod png
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue