summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2010-11-16 09:33:49 -0800
committerMichael Larson <mike@vyatta.com>2010-11-16 09:33:49 -0800
commit46fb3cc1c3e7dc2a006c1546a9e3c16ac529ca16 (patch)
tree4011b4a868bc4c4de540168515eb016a3cccbc48 /scripts
parentde1b9799a4f4240d44be342935ded9a1abfabfe4 (diff)
downloadvyatta-cfg-quagga-46fb3cc1c3e7dc2a006c1546a9e3c16ac529ca16.tar.gz
vyatta-cfg-quagga-46fb3cc1c3e7dc2a006c1546a9e3c16ac529ca16.zip
update call to error location api.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl
index 3f0d539e..70127512 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -47,8 +47,15 @@ if ($dhclient_script == 1) {
}
if ($dhclient_script == 0 && @domains > 0 && $domain_name && length($domain_name) > 0) {
- Vyatta::Config::outputError(["system domain-name","system domain-search domain"],"System configuration error. Both \'domain-name\' and \'domain-search\' are specified, but only one of these mutually exclusive parameters is allowed.");
- exit(1);
+ my @loc;
+ if ($vc->returnOrigValues('domain-search domain') > 0) {
+ @loc = ["system","domain-name"];
+ }
+ else {
+ @loc = ["system","domain-search","domain"];
+ }
+ Vyatta::Config::outputError(@loc,"System configuration error. Both \'domain-name\' and \'domain-search\' are specified, but only one of these mutually exclusive parameters is allowed.");
+ exit(1);
}
my $doms = '';