From 027db4025455ebba942ca71e618b47a3f54529de Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 13 Aug 2002 14:44:22 +0000 Subject: check the config file isn't empty --- perl-install/standalone/service_harddrake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 8d84ba973..e0957938d 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -24,7 +24,7 @@ my $str = '#!/usr/bin/perl -w '; # first run ? if not read old hw config -my %previous_config = -f $last_boot_config ? retrieve($last_boot_config) : {}; +my %previous_config = (-f $last_boot_config && -s $last_boot_config) ? retrieve($last_boot_config) : {}; my (%config, $in); -- cgit v1.2.1