diff options
author | Florent Villard <warly@mandriva.com> | 2003-08-26 15:18:40 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-08-26 15:18:40 +0000 |
commit | 7586c0138f72565f0918c296bc679fda7ce95539 (patch) | |
tree | 393f6632a4637ea08f8e46b4855e1394e513ff6e /scripts/switch-themes | |
parent | a670db03bf445f6f148fa5af12e8e86cdd4357b5 (diff) | |
download | bootsplash-7586c0138f72565f0918c296bc679fda7ce95539.tar bootsplash-7586c0138f72565f0918c296bc679fda7ce95539.tar.gz bootsplash-7586c0138f72565f0918c296bc679fda7ce95539.tar.bz2 bootsplash-7586c0138f72565f0918c296bc679fda7ce95539.tar.xz bootsplash-7586c0138f72565f0918c296bc679fda7ce95539.zip |
fix switch-themes to correctly set lilo message
Diffstat (limited to 'scripts/switch-themes')
-rwxr-xr-x | scripts/switch-themes | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/scripts/switch-themes b/scripts/switch-themes index 273044c..df2cc7e 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -40,21 +40,18 @@ function lilo_switch_themes () { if [[ ! -f $message_from_theme ]];then return; fi - if [[ ! -e $bootdir/message ]];then - return; - fi #Make sure to point on lilo-graphic if [[ -L $bootdir/message ]];then point_to=$(read_link $bootdir/message) - if [[ $point_to != lilo-graphic ]];then + if [[ $point_to != message-graphic ]];then rm -f $bootdir/message - ln -s lilo-graphic $bootdir/message + ln -s message-graphic $bootdir/message fi fi if ! cmp -s $message_from_theme $message_from_current;then - cp -f $message_from_theme $message_from_current + cp -f $message_from_theme $bootdir/message-graphic fi } @@ -104,11 +101,12 @@ function switch_theme () { echo "THEME=$toswitch" >> $sysconfig fi rm -f $tmpfile - if [[ -d /etc/bootsplash/themes/$toswitch ]]; then - rm -f /etc/bootsplash/themes/current - ln -s /etc/bootsplash/themes/$toswitch current + if [[ -d /etc/bootsplash/$toswitch ]]; then + rm -f /etc/bootsplash/current + ln -s /etc/bootsplash/$toswitch current fi fi + lilo_switch_themes $toswitch } function update_boot () { |