aboutsummaryrefslogtreecommitdiffstats
path: root/BCD/Isolinux.pm
diff options
context:
space:
mode:
Diffstat (limited to 'BCD/Isolinux.pm')
-rw-r--r--BCD/Isolinux.pm24
1 files changed, 0 insertions, 24 deletions
diff --git a/BCD/Isolinux.pm b/BCD/Isolinux.pm
index 6b0d8df..0f17dd1 100644
--- a/BCD/Isolinux.pm
+++ b/BCD/Isolinux.pm
@@ -20,30 +20,6 @@ my $build_isolinux_dir = "$builddir/isolinux";
sub switch_theme {
my $theme = $isoconf->{theme}{bootsplash};
print_color("$LOG switch to theme $theme", $color);
- -d "$isoconf->{theme}{bootsplash_path}/themes/$theme" or die "$LOG cant find the gfxboot theme: $isoconf->{theme}{bootsplash_path}/themes/$theme";
- opendir my $DIR, $build_isolinux_dir or die "$LOG FATAL switch_theme: unable to open $build_isolinux_dir\n";
- foreach my $f (readdir $DIR) {
- $f =~ /^\.{1,2}$/ and next;
- -d "$build_isolinux_dir/$f" or next;
- opendir my $ALT, "$build_isolinux_dir/$f" or die "LOG FATAL switch_theme: unable to open $dir/$f\n";
- foreach my $all (readdir $ALT) {
- $all =~ /all.rdz/ or next;
- my $initrd = "$build_isolinux_dir/$f/$all";
- my $binary = "/usr/share/bootsplash/scripts/make-boot-splash-raw";
- -x $binary or die "$LOG you need $binary which is available in bootsplash >= 3.2.3\n";
- my $cmd;
- if ($isoconf->{based_on} gt "2009.1" && $isoconf->{based_on} ne "mes5") {
- $cmd = "$binary $initrd $theme";
- } else {
- # old script use a resolution parameter
- $cmd = "$binary $initrd 800x600 $theme";
- }
- print_color("$LOG using $f", $color);
- system($cmd) == 0 or die "$LOG FATAL switch_theme: config file for $theme may not exist\n";
- }
- closedir $ALT;
- }
- closedir $DIR;
# syslinux
my $lilo_sys = "$isoconf->{theme}{bootsplash_path}/themes/$theme/lilo/syslinux";
-f $lilo_sys and system("cp -vf $lilo_sys", "$build_isolinux_dir/boot.msg");