diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-02-08 18:21:12 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-02-08 18:29:37 +0100 |
commit | 787326b43e332b378899205294b1d92ea77a45d4 (patch) | |
tree | 64eae343b83988b0ffdcea17dd1fdedf484574b6 /package/network/ipv6/odhcp6c/files | |
parent | 30d34358a984603fd5bfea41630501303c840e2c (diff) | |
download | upstream-787326b43e332b378899205294b1d92ea77a45d4.tar.gz upstream-787326b43e332b378899205294b1d92ea77a45d4.tar.bz2 upstream-787326b43e332b378899205294b1d92ea77a45d4.zip |
odhcp6c: fix appending of emtpy sendopt value (FS#1336)
Don't append an empty sendopts value as odhcp6c bails out
immediately on an empty -x option triggering an infinite start
loop of odhcp6c
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh index bc7f01d322..5c2ee6b988 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh @@ -77,7 +77,7 @@ proto_dhcpv6_setup() { sendopts_cb() { local val="$1" - append opts "-x$val" + [ -n "$val" ] && append opts "-x$val" } json_for_each_item sendopts_cb sendopts |