summaryrefslogtreecommitdiffstats
path: root/client/engine/Boot.lib
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-03-25 10:03:31 +0100
committerIrina Gómez <irinagomez@us.es>2019-03-25 10:03:31 +0100
commited4b2fe0919043cd094e79a59ecf63649399899e (patch)
tree073191cb031d75f288cdb7381de28aa732bc8e8a /client/engine/Boot.lib
parent17e90bd29f6372ba22ef77e179a53c04dbd5a505 (diff)
#802 #888 Fix ogBootLoaderSetTheme: refind can start ogLive.
Diffstat (limited to 'client/engine/Boot.lib')
-rwxr-xr-xclient/engine/Boot.lib4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib
index 7f17fabf..280d4351 100755
--- a/client/engine/Boot.lib
+++ b/client/engine/Boot.lib
@@ -2137,6 +2137,8 @@ if [ -d $OGLIB/$BOOTLOADER/themes/$NEWTHEME ]; then
NEWTHEMECFG="$OGLIB/$BOOTLOADER/themes/$NEWTHEME/theme.conf"
[ -f $NEWTHEMECFG ] || ogRaiserError $OG_ERR_NOTFOUND "theme.conf" || return $?
grep -v "^#" $NEWTHEMECFG >> $CFGFILE
+ # eliminamos "set theme" es de grub y no de refind
+ sed -i '/theme_name/d' $CFGFILE
fi
cp -pr $OGLIB/$BOOTLOADER/themes/$NEWTHEME $PART/$BOOTLOADERDIR/themes/
fi
@@ -2147,7 +2149,7 @@ if ! [ -d $PART/$BOOTLOADERDIR/themes/$NEWTHEME ]; then
fi
#Cambiamos la entrada el fichero de configuración.
-sed --regexp-extended -i s/"$THEME"/"$NEWTHEME"/g $CFGFILE
+sed --regexp-extended -i s/"set theme_name=$THEME"/"set theme_name=$NEWTHEME"/g $CFGFILE
}