0032-Reduce-fw3-log-spam-in-netifd-scripts.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 26 Jul 2014 17:03:40 +0200
  3. Subject: Reduce fw3 log spam in netifd scripts
  4. diff --git a/package/netifd/files/lib/netifd/dhcp.script b/package/netifd/files/lib/netifd/dhcp.script
  5. index db3fc01..a7ce0d8 100755
  6. --- a/package/netifd/files/lib/netifd/dhcp.script
  7. +++ b/package/netifd/files/lib/netifd/dhcp.script
  8. @@ -50,7 +50,7 @@ setup_interface () {
  9. ip6rd="${ip6rd#* }"
  10. local ip6rdbr="${ip6rd%% *}"
  11. - [ -n "$ZONE" ] || ZONE=$(fw3 network $INTERFACE)
  12. + [ -n "$ZONE" ] || ZONE=$(fw3 network $INTERFACE 2>/dev/null)
  13. [ -z "$IFACE6RD" -o "$IFACE6RD" = 1 ] && IFACE6RD=${INTERFACE}_6rd
  14. json_init
  15. diff --git a/package/odhcp6c/files/dhcpv6.script b/package/odhcp6c/files/dhcpv6.script
  16. index 8c1ba18..146a966 100755
  17. --- a/package/odhcp6c/files/dhcpv6.script
  18. +++ b/package/odhcp6c/files/dhcpv6.script
  19. @@ -97,7 +97,7 @@ setup_interface () {
  20. MAPRULE="$LW4O6"
  21. fi
  22. - [ -n "$ZONE" ] || ZONE=$(fw3 network $INTERFACE)
  23. + [ -n "$ZONE" ] || ZONE=$(fw3 network $INTERFACE 2>/dev/null)
  24. if [ "$IFACE_MAP" != 0 -a -n "$MAPTYPE" -a -n "$MAPRULE" ]; then
  25. [ -z "$IFACE_MAP" -o "$IFACE_MAP" = 1 ] && IFACE_MAP=${INTERFACE}_map