aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-04-02 21:13:08 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-04-03 10:36:21 +0200
commit20e40db524fb6c391f47619b18bf36bf7932478a (patch)
treefd53b50d6a5faf98c30c099738a05a650f4fc764 /package/network/config/netifd
parent6411a12de2c783bc8882f43d593d9fa63f9b0759 (diff)
downloadupstream-20e40db524fb6c391f47619b18bf36bf7932478a.tar.gz
upstream-20e40db524fb6c391f47619b18bf36bf7932478a.tar.bz2
upstream-20e40db524fb6c391f47619b18bf36bf7932478a.zip
netifd: fix fw3 warnings in dhcp script
Fix fw3 warnings in dhcp script in case fw3 is not enabled Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/config/netifd')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/dhcp.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script
index b3a61e2750..e841f91855 100755
--- a/package/network/config/netifd/files/lib/netifd/dhcp.script
+++ b/package/network/config/netifd/files/lib/netifd/dhcp.script
@@ -60,7 +60,7 @@ setup_interface () {
ip6rd="${ip6rd#* }"
local ip6rdbr="${ip6rd%% *}"
- [ -n "$ZONE" ] || ZONE=$(fw3 -q network $INTERFACE)
+ [ -n "$ZONE" ] || ZONE=$(fw3 -q network $INTERFACE 2>/dev/null)
[ -z "$IFACE6RD" -o "$IFACE6RD" = 1 ] && IFACE6RD=${INTERFACE}_6
json_init