diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-18 08:27:59 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-18 08:27:59 +0000 |
commit | f23d1861db32645e71e71f04bc8764a2c786562e (patch) | |
tree | 23afdd2e05e223a524cf8823e0b222d8b2dadd28 /scripts/switch-themes | |
parent | 853f4780aa84916638738c4520716697f6978ef7 (diff) | |
download | bootsplash-f23d1861db32645e71e71f04bc8764a2c786562e.tar bootsplash-f23d1861db32645e71e71f04bc8764a2c786562e.tar.gz bootsplash-f23d1861db32645e71e71f04bc8764a2c786562e.tar.bz2 bootsplash-f23d1861db32645e71e71f04bc8764a2c786562e.tar.xz bootsplash-f23d1861db32645e71e71f04bc8764a2c786562e.zip |
added grub support in the theme
Diffstat (limited to 'scripts/switch-themes')
-rwxr-xr-x | scripts/switch-themes | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/switch-themes b/scripts/switch-themes index 5f9b0d7..678dbdd 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -55,6 +55,20 @@ function lilo_switch_themes () { fi } +function grub_switch_themes () { + local theme=$1 + local message_from_theme=$bootsplashdir/themes/$theme/grub/splash.xpm.gz + local message_from_current=$bootdir/grub/splash.xpm.gz + + #checking + if [[ ! -f $message_from_theme ]];then + return; + fi + + rm -f $message_from_current + cp -f $message_from_theme $message_from_current +} + function check_it () { local theme=$1 local ok= c= @@ -72,6 +86,7 @@ function check_it () { function update () { local theme=$1; lilo_switch_themes $theme + grub_switch_themes $theme } function switch_theme () { @@ -106,6 +121,7 @@ function switch_theme () { fi fi lilo_switch_themes $toswitch + grub_switch_themes $toswitch } function update_boot () { |