diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-05-18 09:35:48 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-05-18 09:35:48 +0000 |
commit | f8bf25a7bfbb77d2b10c5421898ff8095d90ec04 (patch) | |
tree | a46b2c330ee3b11be1ff45cee0495101ab829179 /applications/luci-splash | |
parent | 1404e24be53626ce1dcd92e06ed2b9724a525a33 (diff) |
applications/luci-splash: Only add splash forwarding rule for ip6tables when the interface has an ipv6 address
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-x | applications/luci-splash/root/etc/init.d/luci_splash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash index a6c636609..99f6140f1 100755 --- a/applications/luci-splash/root/etc/init.d/luci_splash +++ b/applications/luci-splash/root/etc/init.d/luci_splash @@ -1,5 +1,6 @@ #!/bin/sh /etc/rc.common +set -x START=70 EXTRA_COMMANDS=clear_leases LIMIT_DOWN=0 @@ -64,7 +65,7 @@ iface_add() { ipt_log "zone_${zone}_prerouting" -i "${ifname%:*}" -s "$NETWORK/$PREFIX" -j luci_splash_prerouting -t nat ipt_log "zone_${zone}_forward" -i "${ifname%:*}" -s "$NETWORK/$PREFIX" -j luci_splash_forwarding -t filter - if [ "$HAS_IPV6" = 1 ]; then + if [ "$HAS_IPV6" = 1 ] && [ -n "$ip6addr" ]; then ipt6_log "zone_${zone}_forward" -i "${ifname%:*}" -s "$ip6addr" -j luci_splash_forwarding -t filter fi |