From 21bd24a5b667942d83eb892c932f97c98c525478 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 20 Oct 2005 16:51:36 +0000 Subject: add option --auto to install without prompting --- rescue/install_bootloader | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rescue/install_bootloader') diff --git a/rescue/install_bootloader b/rescue/install_bootloader index 59248a016..ba43eff84 100755 --- a/rescue/install_bootloader +++ b/rescue/install_bootloader @@ -17,6 +17,10 @@ use common; use bootloader; use fs; +if ($ARGV[0] eq '--auto') { + $auto = shift @ARGV; +} + $::prefix = '/mnt'; my $release = common::mandrake_release($::prefix) || @@ -58,6 +62,8 @@ my $install = $bootloader::{'install_raw_' . $main_method} or die "unknown bootl print "About to re-install Boot Loader $main_method of following Mandriva Linux distribution:\n\t", $release, "\n=> ok? "; - =~ /^n/i and exit 0; +if (!$auto) { + =~ /^n/i and exit 0; +} $install->(); -- cgit v1.2.1