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 | |
parent | 438beb1133c14cd3bf6bf16a1fb99fc63973a9de (diff) | |
parent | 34b70e943b9b8b133434ab7705e2543feee85c8c (diff) | |
download | vyatta-op-f3971ac7bc0989ad4bfb842138be3eee4ac84b17.tar.gz vyatta-op-f3971ac7bc0989ad4bfb842138be3eee4ac84b17.zip |
Merge branch 'hollywood' into islavista
-rwxr-xr-x | functions/tech-support | 3 | ||||
-rwxr-xr-x | scripts/vyatta-show-dhclient.pl | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/functions/tech-support b/functions/tech-support index 18647f1..73b5eb6 100755 --- a/functions/tech-support +++ b/functions/tech-support @@ -225,6 +225,9 @@ done header wanrouter conflog wanrouter conflog +header /var/log/messages +tail -n 250 /var/log/messages + header "END OF TECH-SUPPORT FILE" ) 1>&$OUT 2>&1 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; |