odhcp6c: silence fw3 warnings
authorSteven Barth <cyrus@openwrt.org>
Mon, 1 Jun 2015 08:31:13 +0000 (08:31 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 1 Jun 2015 08:31:13 +0000 (08:31 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45867

package/network/ipv6/odhcp6c/files/dhcpv6.script

index a2adf39ad16725203a0d3cf2aa84cdcffeed571d..650c9b2e8f57462f34cd62a56fe5cb5d563108b5 100755 (executable)
@@ -118,7 +118,7 @@ setup_interface () {
                MAPRULE="$LW4O6"
        fi
 
-       [ -n "$ZONE" ] || ZONE=$(fw3 -q network $INTERFACE)
+       [ -n "$ZONE" ] || ZONE=$(fw3 -q network $INTERFACE 2>/dev/null)
 
        if [ "$IFACE_MAP" != 0 -a -n "$MAPTYPE" -a -n "$MAPRULE" ]; then
                [ -z "$IFACE_MAP" -o "$IFACE_MAP" = 1 ] && IFACE_MAP=${INTERFACE}_4