summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorDavid Baudens <baudens@mandriva.com>2004-11-26 14:00:38 +0000
committerDavid Baudens <baudens@mandriva.com>2004-11-26 14:00:38 +0000
commite57eb1b63030725c194a3878130fb8eb283b902e (patch)
treeb0d545191a181c48632fd97b15d3bb52b90c9bfb /perl-install/devices.pm
parentc3ada7496b67f1d61390c28f991fc7c34bf2577e (diff)
downloaddrakx-e57eb1b63030725c194a3878130fb8eb283b902e.tar
drakx-e57eb1b63030725c194a3878130fb8eb283b902e.tar.gz
drakx-e57eb1b63030725c194a3878130fb8eb283b902e.tar.bz2
drakx-e57eb1b63030725c194a3878130fb8eb283b902e.tar.xz
drakx-e57eb1b63030725c194a3878130fb8eb283b902e.zip
Add some tool in DEVELOPMENT section
Diffstat (limited to 'perl-install/devices.pm')
0 files changed, 0 insertions, 0 deletions
++ b/perl-install/pkgs.pm
@@ -943,6 +943,7 @@ sub install($$$;$$) {
$error_msg and die $error_msg;
} else {
#- child process will run each transaction.
+ $SIG{SEGV} = sub { print OUTPUT "die:crashed\n"; c::_exit(0) };
eval {
close INPUT;
select((select(OUTPUT), $| = 1)[0]);
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index 6171c5a30..2bcef5da4 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -19,6 +19,17 @@ $::isStandalone = 1;
my $in = vnew interactive('su');
+my %l = (
+ _("Configure LILO/GRUB") => '',
+ _("Create a boot floppy") => '/usr/X11R6/bin/drakfloppy',
+ _("Format floppy") => '/usr/bin/gfloppy',
+);
+-x $l{$_} or delete $l{$_} foreach grep { $l{$_} } keys %l;
+
+my $cmd = $l{$in->ask_from_list(_("Choice"), _("What do you want to do?"), [ keys %l ])};
+exec $cmd if $cmd;
+
+
my $bootloader = lilo::read('', '/etc/lilo.conf');
local ($_) = `detectloader`;
$bootloader->{methods} = { lilo => 1, grub => !!/grub/i };