From 5dd25e576d6ac8152e44075dfdb229e1337adf14 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Thu, 15 Mar 2001 14:53:09 +0000 Subject: bootloader.pm, detect_devices.pm, install_steps_interactive.pm: changed temporary file read/write per Pixel --- perl-install/install_steps_interactive.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'perl-install/install_steps_interactive.pm') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index a8fe951b7..f344e5caa 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -962,12 +962,8 @@ try to force installation even if that destroys the first partition?")); unlink "$o->{prefix}/tmp/.error"; die "already displayed"; } elsif (arch() =~ /ppc/) { - open(FILE, "$o->{prefix}/tmp/of_boot_dev") || die "Can't open $o->{prefix}/tmp/of_boot_dev"; - my $of_boot = ""; - local $_ = ""; - while (){ - $of_boot = $_; - } + my $of_boot = cat_("$o->{prefix}/tmp/of_boot_dev") || die "Can't open $o->{prefix}/tmp/of_boot_dev"; + chop($of_boot); unlink "$o->{prefix}/tmp/.error"; $o->ask_warn('', _("You will need to change your Open Firmware boot-device to\n enable the bootloader. Hold down Command-Option-O-F\n at reboot and enter:\n setenv boot-device $of_boot,\\ofboot.b\n Then type: shut-down\nAt your next boot you should see the bootloader prompt.")); } -- cgit v1.2.1