diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-07-16 14:16:37 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-07-16 14:16:37 -0700 |
commit | f3971ac7bc0989ad4bfb842138be3eee4ac84b17 (patch) | |
tree | 930e72e7e5e336c9e4e1cb851323e940ab4b5609 /scripts | |
parent | 438beb1133c14cd3bf6bf16a1fb99fc63973a9de (diff) | |
parent | 34b70e943b9b8b133434ab7705e2543feee85c8c (diff) | |
download | vyatta-op-f3971ac7bc0989ad4bfb842138be3eee4ac84b17.tar.gz vyatta-op-f3971ac7bc0989ad4bfb842138be3eee4ac84b17.zip |
Merge branch 'hollywood' into islavista
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-show-dhclient.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/vyatta-show-dhclient.pl b/scripts/vyatta-show-dhclient.pl index b696f8f..a158598 100755 --- a/scripts/vyatta-show-dhclient.pl +++ b/scripts/vyatta-show-dhclient.pl @@ -122,7 +122,14 @@ sub dhclient_show_lease { } } print "subnet mask: $new_subnet_mask\n" if defined $new_subnet_mask; - print "domain name: $new_domain_name\n" if defined $new_domain_name; + if (defined $new_domain_name) { + print "domain name: $new_domain_name"; + if (`grep domain /etc/resolv.conf 2> /dev/null`) { + print "\t[overridden by domain-name set using CLI]\n"; + } else { + print "\n"; + } + } print "router : $new_routers\n" if defined $new_routers; print "name server: $new_domain_name_servers\n" if defined $new_domain_name_servers; |