From e509e8dd821cec47a5d9dd7c139a48667188c4ca Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 25 Aug 2004 10:01:12 +0000 Subject: just go on if --force is passed --- perl-install/standalone/service_harddrake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 2646b2cf8..3cb61933d 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -14,6 +14,9 @@ use harddrake::sound; use modules; use Storable qw(store retrieve); + +my $force = any { $_ eq '--force' } @ARGV; + my $invert_do_it = $ARGV[0] eq 'X11' ? 1 : 0; my ($hw_sysconfdir, $timeout) = ("/etc/sysconfig/harddrake2", $invert_do_it ? 600 : 25); my $last_boot_config = "$hw_sysconfdir/previous_hw"; @@ -73,7 +76,7 @@ foreach my $hw_class (@harddrake::data::tree) { $id => $i; } eval { &$detector }; $config{$Ident} = \%ID; - next if !$is_globetrotter && is_empty_hash_ref $previous_config; # don't fsck on first run + next if !$is_globetrotter && !$force && is_empty_hash_ref($previous_config); # don't fsck on first run but if --force my $oldconfig = $previous_config->{$Ident}; -- cgit v1.2.1