diff options
author | Florent Villard <warly@mandriva.com> | 2004-02-06 14:07:09 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2004-02-06 14:07:09 +0000 |
commit | 2d65b7031be6cd3aa3a6e66fb015eceb8400b3ae (patch) | |
tree | 4a89a8ec398a848fa953cd519a9480eccf344e4e /scripts/remove-theme | |
parent | 505e4d445c2193e0ddad715e9511b01803db2c46 (diff) | |
download | bootsplash-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-theme | 8 |
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 |