summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-20 15:48:53 +0100
committerDaniil Baturin <daniil@baturin.org>2015-02-20 15:55:34 +0100
commit6ba5c5457330a7cd481fd85c856a8163e061d714 (patch)
tree75038cfd59d91cfc6ccf4096024d2c29e89d9a21 /scripts
parent92d55c6e223e42d09cd4120cf476b59e99c77419 (diff)
downloadvyatta-cfg-system-6ba5c5457330a7cd481fd85c856a8163e061d714.tar.gz
vyatta-cfg-system-6ba5c5457330a7cd481fd85c856a8163e061d714.zip
Bug #491: don't allow temporary and parameters-only
DHCPv6 options to be configured at the same time.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-dhcpv6-client.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/vyatta-dhcpv6-client.pl b/scripts/vyatta-dhcpv6-client.pl
index ccedb01c..45318aef 100755
--- a/scripts/vyatta-dhcpv6-client.pl
+++ b/scripts/vyatta-dhcpv6-client.pl
@@ -130,6 +130,11 @@ if (defined($start_flag) || defined ($renew_flag)) {
printf("Stopping old daemon...\n");
system("$cmdname -6 -pf $pidfile -x $ifname");
+ if (defined($temporary) && defined($params_only)) {
+ print "Error: temporary and parameters-only options are mutually exclusive!\n";
+ exit 1;
+ }
+
my $temp_opt = defined($temporary) ? "-T" : "";
my $po_opt = defined($params_only) ? "-S" : "";