nodogsplash2: Add NDS Restart Hook for Firewall

nodogsplash2: Add NDS Restart Hook for Firewall
NodogSplash iptables entries are overwritten if the OpenWrt Firewall is restarted.
This change adds a restart hook to firewall.user to restart NodogSplash if Firewall is restarted.
Author-name: Rob White
Signed-off-by: Rob White rob@blue-wave.net
This commit is contained in:
Rob White 2018-04-26 11:42:33 +01:00 committed by GitHub
parent fdaa4cde3b
commit 9892ca6036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,12 @@ define Package/nodogsplash2/install
$(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/ $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/
endef endef
define Package/nodogsplash2/postrm
#!/bin/sh
uci delete firewall.nodogsplash2
uci commit firewall
endef
define Package/nodogsplash2/conffiles define Package/nodogsplash2/conffiles
/etc/nodogsplash/nodogsplash.conf /etc/nodogsplash/nodogsplash.conf
endef endef