From 9892ca60368595b118ff56a2f32195583b8373d2 Mon Sep 17 00:00:00 2001 From: Rob White Date: Thu, 26 Apr 2018 11:42:33 +0100 Subject: [PATCH] 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 --- nodogsplash2/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nodogsplash2/Makefile b/nodogsplash2/Makefile index badbe1e..f17e5da 100644 --- a/nodogsplash2/Makefile +++ b/nodogsplash2/Makefile @@ -54,6 +54,12 @@ define Package/nodogsplash2/install $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/ endef +define Package/nodogsplash2/postrm +#!/bin/sh +uci delete firewall.nodogsplash2 +uci commit firewall +endef + define Package/nodogsplash2/conffiles /etc/nodogsplash/nodogsplash.conf endef