diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-06 12:06:35 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-06 12:06:35 +0000 |
commit | a896d47b3871b71cb7f15b25689aac85eb6d455f (patch) | |
tree | ad660bb541dd52ac8df2e588f6a2ac4aa05f6076 | |
parent | 0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f (diff) | |
download | drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.gz drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.bz2 drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.tar.xz drakwizard-a896d47b3871b71cb7f15b25689aac85eb6d455f.zip |
test dhcpd.conf before cp
-rw-r--r-- | dhcp_wizard/scripts/Dhcpconf.pm | 2 |
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; |