diff options
author | Francois Pons <fpons@mandriva.com> | 2003-07-31 12:38:51 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-07-31 12:38:51 +0000 |
commit | ec69243a365899ae6883008e336eccaffca70291 (patch) | |
tree | f977cb71fd7b9a794634dc29691226089362d0f5 /perl-install | |
parent | 65edd9082d570fff5a1aaefe4e371bb32f462f8c (diff) | |
download | drakx-ec69243a365899ae6883008e336eccaffca70291.tar drakx-ec69243a365899ae6883008e336eccaffca70291.tar.gz drakx-ec69243a365899ae6883008e336eccaffca70291.tar.bz2 drakx-ec69243a365899ae6883008e336eccaffca70291.tar.xz drakx-ec69243a365899ae6883008e336eccaffca70291.zip |
apply oem image modification to bootsplash too.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_steps.pm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 5e108ef26..d0e7181ba 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -330,6 +330,11 @@ sub beforeInstallPackages { mkdir "$o->{prefix}$_" foreach qw(/boot /usr /usr/share /usr/share/mdk); install_any::getAndSaveFile("Mandrake/base/oem-message-graphic", "$o->{prefix}/boot/oem-message-graphic"); install_any::getAndSaveFile("Mandrake/base/oem-background.png", "$o->{prefix}/usr/share/mdk/oem-background.png"); + #- add oem bootsplash theme if files exists. + foreach (qw(oem-message-graphic oem-bootsplash-800x600.jpg oem-bootsplash-1024x768.jpg oem-bootsplash-1200x1024.jpg + oem-bootsplash-1600x1200.jpg)) { + install_any::getAndSaveFile("Mandrake/base/$_", "$o->{prefix}/usr/share/bootsplash/$_"); + } } sub pkg_install { @@ -573,6 +578,22 @@ GridHeight=70 } } + #- modifying Mandrake theme directly, all image may not be available. + if (-e "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/lilo/message" && + -e "$o->{prefix}/usr/share/bootsplash/oem-message-graphic") { + rename "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/lilo/message", + "$o->{prefix}/usr/share/bootsplash/message.mdkgiorig"; + rename "$o->{prefix}/usr/share/bootsplash/oem-message-graphic", + "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/lilo/message"; + } + foreach (qw(oem-bootsplash-800x600.jpg oem-bootsplash-1024x768.jpg oem-bootsplash-1200x1024.jpg + oem-bootsplash-1600x1200.jpg)) { + if (-e "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/images/$_" && "$o->{prefix}/usr/share/bootsplash/$_") { + rename "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/images/$_", "$o->{prefix}/usr/share/bootsplash/$_.mdkgiorig"; + rename "$o->{prefix}/usr/share/bootsplash/$_", "$o->{prefix}/usr/share/bootsplash/themes/Mandrake/images/$_"; + } + } + if ($o->{blank} || $o->{updatemodules}) { my @l = detect_devices::floppies_dev(); |