diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-13 14:44:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-13 14:44:22 +0000 |
commit | 027db4025455ebba942ca71e618b47a3f54529de (patch) | |
tree | a7974e63d3977950e0d09b1b3ab10eae9fabd0fc /perl-install/standalone | |
parent | ab2380bbd72e94f52c119e042096ce66043ac06c (diff) | |
download | drakx-027db4025455ebba942ca71e618b47a3f54529de.tar drakx-027db4025455ebba942ca71e618b47a3f54529de.tar.gz drakx-027db4025455ebba942ca71e618b47a3f54529de.tar.bz2 drakx-027db4025455ebba942ca71e618b47a3f54529de.tar.xz drakx-027db4025455ebba942ca71e618b47a3f54529de.zip |
check the config file isn't empty
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/service_harddrake | 2 |
1 files changed, 1 insertions, 1 deletions
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); |