diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-03-15 15:53:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-03-15 15:53:01 +0000 |
commit | fbfc3a2fcbdd34e8d3c22a41c34f227656803748 (patch) | |
tree | ebd090b101cf15db0e0bbb082a9384a6a1f9f8ca /scripts | |
parent | d176ed82d0e610ef518e36b0c2f7ec26861118a2 (diff) | |
download | bootsplash-fbfc3a2fcbdd34e8d3c22a41c34f227656803748.tar bootsplash-fbfc3a2fcbdd34e8d3c22a41c34f227656803748.tar.gz bootsplash-fbfc3a2fcbdd34e8d3c22a41c34f227656803748.tar.bz2 bootsplash-fbfc3a2fcbdd34e8d3c22a41c34f227656803748.tar.xz bootsplash-fbfc3a2fcbdd34e8d3c22a41c34f227656803748.zip |
switch-themes: handle /boot/gfxmenu for grub
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/switch-themes | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/scripts/switch-themes b/scripts/switch-themes index 678dbdd..6630107 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -57,16 +57,16 @@ function lilo_switch_themes () { 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 + local background_dir=/usr/share/gfxboot/themes/$theme/ + local gfxmenu=$bootdir/gfxmenu #checking - if [[ ! -f $message_from_theme ]];then + if [[ ! -f "$background_dir/back.jpg" ]];then return; fi - rm -f $message_from_current - cp -f $message_from_theme $message_from_current + cpio-filter --in-place --exclude back.jpg $gfxmenu + echo back.jpg | (cd $background_dir ; cpio -o --quiet -O $gfxmenu --append) } function check_it () { @@ -85,8 +85,14 @@ function check_it () { function update () { local theme=$1; - lilo_switch_themes $theme - grub_switch_themes $theme + # 20061208 warly + # with grub as default and gfxboot we should now only update + # the current link in /usr/share/bootsplash/themes + #lilo_switch_themes $theme + #grub_switch_themes $theme + # + rm -f $bootsplashdir/current + ln -s $theme $bootsplashdir/current } function switch_theme () { @@ -120,7 +126,7 @@ function switch_theme () { ln -s $toswitch /etc/bootsplash/themes/current fi fi - lilo_switch_themes $toswitch + #lilo_switch_themes $toswitch grub_switch_themes $toswitch } |