aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remove-theme
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2004-02-06 14:07:09 +0000
committerFlorent Villard <warly@mandriva.com>2004-02-06 14:07:09 +0000
commit2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae (patch)
tree4a89a8ec398a848fa953cd519a9480eccf344e4e /scripts/remove-theme
parent505e4d445c2193e0ddad715e9511b01803db2c46 (diff)
downloadbootsplash-2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae.tar
bootsplash-2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae.tar.gz
bootsplash-2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae.tar.bz2
bootsplash-2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae.tar.xz
bootsplash-2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae.zip
Apply Olivier Blin patches for a better THEME= handling.
Apply Olivier Blin patch to support quote in lilo names
Diffstat (limited to 'scripts/remove-theme')
-rw-r--r--scripts/remove-theme8
1 files changed, 6 insertions, 2 deletions
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