From 60cb93a00f95bdce9fe9f8595b86feb9eddc5a4c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 19 Apr 2000 14:38:08 +0000 Subject: no_comment --- perl-install/standalone/drakboot | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'perl-install/standalone/drakboot') 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 }; -- cgit v1.2.1