grub: Added ability to set grub theme name

Simply Linux has a specific directory name with a theme.
This commit is contained in:
Anton Midyukov 2020-03-20 13:34:50 +07:00
parent b6fed78a52
commit eed69db1ab

View File

@ -98,7 +98,8 @@ bootargs: clean
@if [ $$(echo $(KFLAVOURS) | wc -w) -gt 1 ]; then \
sed -i "s,@KFLAVOUR@,$(KFLAVOURS),g" $(DSTCFGS); \
fi
GRUBTHEME=$$(cut -d "-" -f2 <<< $(BRANDING)); \
GRUBTHEME=$(GRUBTHEME); \
[ -n "$$GRUBTHEME" ] || GRUBTHEME=$$(cut -d "-" -f2 <<< $(BRANDING)); \
sed -i "s,@grubtheme@,$$GRUBTHEME,g" $(DSTCFGS); \
clean: copy