summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-13 14:44:22 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-13 14:44:22 +0000
commit027db4025455ebba942ca71e618b47a3f54529de (patch)
treea7974e63d3977950e0d09b1b3ab10eae9fabd0fc /perl-install/standalone
parentab2380bbd72e94f52c119e042096ce66043ac06c (diff)
downloaddrakx-backup-do-not-use-027db4025455ebba942ca71e618b47a3f54529de.tar
drakx-backup-do-not-use-027db4025455ebba942ca71e618b47a3f54529de.tar.gz
drakx-backup-do-not-use-027db4025455ebba942ca71e618b47a3f54529de.tar.bz2
drakx-backup-do-not-use-027db4025455ebba942ca71e618b47a3f54529de.tar.xz
drakx-backup-do-not-use-027db4025455ebba942ca71e618b47a3f54529de.zip
check the config file isn't empty
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake2
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);