diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-02 21:13:08 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 14:59:50 +0100 |
commit | 7fb03d96105ae3d42c422383bdb36eff76d403e0 (patch) | |
tree | 1e2e48be5021d3709ae116bf9c2b8fe23cf783ca /package/network | |
parent | f69d73f1b2f934c53003bc49ce3cc062e89bb5ae (diff) | |
download | upstream-7fb03d96105ae3d42c422383bdb36eff76d403e0.tar.gz upstream-7fb03d96105ae3d42c422383bdb36eff76d403e0.tar.bz2 upstream-7fb03d96105ae3d42c422383bdb36eff76d403e0.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>
(cherry picked from commit 20e40db524fb6c391f47619b18bf36bf7932478a)
Diffstat (limited to 'package/network')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/dhcp.script | 2 |
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 |