From: Hans Dedecker Date: Mon, 13 Nov 2017 21:33:48 +0000 (+0100) Subject: igmpproxy: remove firewall rules when service is stopped X-Git-Tag: v18.06.0-rc1~1761 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=31ebbe34ccc066c212ef20de0856ab3a428fb801;ds=sidebyside igmpproxy: remove firewall rules when service is stopped Remove multicast routing firewall rules when the igmpproxy is stopped by triggering a firewall config change. Keeping the firewall open from the wan for igmp and udp multicast is not desired when the igmpproxy service is inactive. Signed-off-by: Hans Dedecker --- diff --git a/package/network/services/igmpproxy/Makefile b/package/network/services/igmpproxy/Makefile index d07fe66998..38efabe1cb 100644 --- a/package/network/services/igmpproxy/Makefile +++ b/package/network/services/igmpproxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=igmpproxy PKG_VERSION:=0.1 -PKG_RELEASE:=9 +PKG_RELEASE:=10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/igmpproxy diff --git a/package/network/services/igmpproxy/files/igmpproxy.init b/package/network/services/igmpproxy/files/igmpproxy.init index 9f4e51ada4..403854546f 100644 --- a/package/network/services/igmpproxy/files/igmpproxy.init +++ b/package/network/services/igmpproxy/files/igmpproxy.init @@ -132,3 +132,7 @@ start_service() { service_started() { procd_set_config_changed firewall } + +stop_service() { + procd_set_config_changed firewall +}