diff options
author | Steven Barth <cyrus@openwrt.org> | 2013-02-26 12:50:52 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2013-02-26 12:50:52 +0000 |
commit | a90b6f7d900a0dab358ecb56dd78c127a8797452 (patch) | |
tree | 7319d5eee7f40c6ed7899bc3e69a96504e7480ac /package/network/ipv6/6relayd/files/6relayd.init | |
parent | 32ac53821fd6cd37f7b2afbbda3d42d2ce61ae87 (diff) | |
download | upstream-a90b6f7d900a0dab358ecb56dd78c127a8797452.tar.gz upstream-a90b6f7d900a0dab358ecb56dd78c127a8797452.tar.bz2 upstream-a90b6f7d900a0dab358ecb56dd78c127a8797452.zip |
6relayd: Fix config behaviour for rewrite_dns_addr option
SVN-Revision: 35804
Diffstat (limited to 'package/network/ipv6/6relayd/files/6relayd.init')
-rw-r--r-- | package/network/ipv6/6relayd/files/6relayd.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.init b/package/network/ipv6/6relayd/files/6relayd.init index 410164a9d7..ef0c711224 100644 --- a/package/network/ipv6/6relayd/files/6relayd.init +++ b/package/network/ipv6/6relayd/files/6relayd.init @@ -69,7 +69,7 @@ start_6relayd() { local always_rewrite_dns rewrite_dns_addr config_get_bool always_rewrite_dns "$cfg" always_rewrite_dns 0 config_get rewrite_dns_addr "$cfg" rewrite_dns_addr - [ "$always_rewrite_dns" -eq 1 ] && append args "-n$rewrite_dns_addr" + [ "$always_rewrite_dns" -eq 1 -o -n "$rewrite_dns_addr" ] && append args "-n$rewrite_dns_addr" local always_assume_default config_get_bool always_assume_default "$cfg" always_assume_default 0 |