From 2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Fri, 6 Feb 2004 14:07:09 +0000 Subject: Apply Olivier Blin patches for a better THEME= handling. Apply Olivier Blin patch to support quote in lilo names --- scripts/remove-theme | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/remove-theme') diff --git a/scripts/remove-theme b/scripts/remove-theme index 14636c1..f7b8dde 100644 --- a/scripts/remove-theme +++ b/scripts/remove-theme @@ -12,7 +12,11 @@ function remove_theme () { cp -f $sysconfig $tmpfile && rm -f $sysconfig ok= while read line;do - if [[ $line == THEME=* ]];then + if [[ $line == SPLASH=* ]];then + echo "SPLASH=no" >> $sysconfig + continue; + fi + if [[ $line == THEME=* ]];then echo "THEME=" >> $sysconfig ok=yes continue; @@ -20,7 +24,7 @@ function remove_theme () { echo $line >> $sysconfig done < $tmpfile if [[ -z $ok ]];then - echo "THEME=$toswitch" >> $sysconfig + echo "THEME=" >> $sysconfig fi rm -f $tmpfile rm -f /etc/bootsplash/current -- cgit v1.2.1