summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-09-06 12:06:35 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-09-06 12:06:35 +0000
commita896d47b3871b71cb7f15b25689aac85eb6d455f (patch)
treead660bb541dd52ac8df2e588f6a2ac4aa05f6076 /dhcp_wizard
parent0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f (diff)
downloaddrakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar
drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.gz
drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.bz2
drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.xz
drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.zip
test dhcpd.conf before cp
Diffstat (limited to 'dhcp_wizard')
-rw-r--r--dhcp_wizard/scripts/Dhcpconf.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm
index 995da298..5b31a53d 100644
--- a/dhcp_wizard/scripts/Dhcpconf.pm
+++ b/dhcp_wizard/scripts/Dhcpconf.pm
@@ -91,7 +91,7 @@ sub do_it {
system("mv $tmp $file");
}
$file = "/etc/dhcpd.conf";
- MDK::Common::cp_af($file, $file.".orig");
+ -f $file and MDK::Common::cp_af($file, $file.".orig");
output($file, map {
s|__hname__|$wiz_host_name|g;
s|__net__|$wiz_ip_net|g;