From d52b0d11f51cfdcfda77d53b8b9e4c697b1a77cc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 7 Jun 2009 11:52:24 +0000 Subject: [PATCH] modules/freifunk: restart p2pblock on firewall restarts if it's enabled --- modules/freifunk/root/etc/firewall.freifunk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/freifunk/root/etc/firewall.freifunk b/modules/freifunk/root/etc/firewall.freifunk index d8590fa79..26a6d8e9d 100644 --- a/modules/freifunk/root/etc/firewall.freifunk +++ b/modules/freifunk/root/etc/firewall.freifunk @@ -56,4 +56,7 @@ uci_set_state firewall core loaded 1 config_foreach fw_addif interface config_foreach apply_nat_fix interface -[ -x /etc/init.d/luci_splash ] && ( sleep 3; /etc/init.d/luci_splash start )& +[ -x /etc/init.d/luci_splash ] && ( sleep 3; /etc/init.d/luci_splash restart )& + +[ -x /etc/init.d/freifunk-p2pblock ] && /etc/init.d/freifunk-p2pblock enabled && \ + ( sleep 3; /etc/init./freifunk-p2pblock restart )& -- 2.25.1