aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-04-15 14:04:17 +0000
committerSteven Barth <cyrus@openwrt.org>2015-04-15 14:04:17 +0000
commitf1119373f2eead74abfca50510e83e0b1c41a49e (patch)
treef157a3e192cb95e44bb5e1f3940af7fb00817ad1 /package/network/ipv6/odhcp6c
parent2eefcd1048f4a4fb4e6985b1602032f4a5af129a (diff)
downloadupstream-f1119373f2eead74abfca50510e83e0b1c41a49e.tar.gz
upstream-f1119373f2eead74abfca50510e83e0b1c41a49e.tar.bz2
upstream-f1119373f2eead74abfca50510e83e0b1c41a49e.zip
odhcp6c: silence "bad number" warnings
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 45449
Diffstat (limited to 'package/network/ipv6/odhcp6c')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.script8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
index be74b01e4e..515bee32b4 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
@@ -164,10 +164,10 @@ setup_interface () {
# Apply IPv6 / ND configuration
HOPLIMIT=$(cat /proc/sys/net/ipv6/conf/$device/hop_limit)
- [ "$RA_HOPLIMIT" -gt "$HOPLIMIT" ] && echo "$RA_HOPLIMIT" > /proc/sys/net/ipv6/conf/$device/hop_limit
- [ "$RA_MTU" -gt 0 ] && echo "$RA_MTU" > /proc/sys/net/ipv6/conf/$device/mtu
- [ "$RA_REACHABLE" -gt 0 ] && echo "$RA_REACHABLE" > /proc/sys/net/ipv6/neigh/$device/base_reachable_time_ms
- [ "$RA_RETRANSMIT" -gt 0 ] && echo "$RA_RETRANSMIT" > /proc/sys/net/ipv6/neigh/$device/retrans_time_ms
+ [ -n "$RA_HOPLIMIT" -a -n "$HOPLIMIT" ] && [ "$RA_HOPLIMIT" -gt "$HOPLIMIT" ] && echo "$RA_HOPLIMIT" > /proc/sys/net/ipv6/conf/$device/hop_limit
+ [ -n "$RA_MTU" ] && [ "$RA_MTU" -gt 0 ] && echo "$RA_MTU" > /proc/sys/net/ipv6/conf/$device/mtu
+ [ -n "$RA_REACHABLE" ] && [ "$RA_REACHABLE" -gt 0 ] && echo "$RA_REACHABLE" > /proc/sys/net/ipv6/neigh/$device/base_reachable_time_ms
+ [ -n "$RA_RETRANSMIT" ] && [ "$RA_RETRANSMIT" -gt 0 ] && echo "$RA_RETRANSMIT" > /proc/sys/net/ipv6/neigh/$device/retrans_time_ms
# TODO: $SNTP_IP $SIP_IP $SNTP_FQDN $SIP_DOMAIN
}