diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-02-20 15:48:53 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-02-20 15:55:34 +0100 |
commit | 6ba5c5457330a7cd481fd85c856a8163e061d714 (patch) | |
tree | 75038cfd59d91cfc6ccf4096024d2c29e89d9a21 /scripts | |
parent | 92d55c6e223e42d09cd4120cf476b59e99c77419 (diff) | |
download | vyatta-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-x | scripts/vyatta-dhcpv6-client.pl | 5 |
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" : ""; |