diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-09-11 18:02:51 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-09-15 13:45:27 -0700 |
commit | 4c6058290aea7befd0d0b82c8e28f000a48ed234 (patch) | |
tree | 8e4bc3d7748fbbb282a39e0c533efb86d081229e | |
parent | 61c59058ef3dcdaf809b9f6dd2349a172202e8dd (diff) | |
download | vyatta-cfg-system-4c6058290aea7befd0d0b82c8e28f000a48ed234.tar.gz vyatta-cfg-system-4c6058290aea7befd0d0b82c8e28f000a48ed234.zip |
Fix Bug 4919 "service dns" branch of configuration file missing ...
* modify code to comply with Jenner change in is_dhcp_enabled()
-rw-r--r-- | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index d8552bd4..0caf8371 100644 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -167,10 +167,8 @@ sub check_dhcp_interface { my $interface = shift; - if (!Vyatta::Misc::is_dhcp_enabled($interface)) { - print "DNS forwarding error: $interface is not using DHCP to get an IP address\n"; - return 0; - } + die "DNS forwarding error: $interface is not using DHCP to get an IP address\n" + unless Vyatta::Misc::is_dhcp_enabled($interface); if (-e "/var/run/vyatta/dhclient/dhclient_release_$interface") { # dhcp released for the interface |