modules/freifunk: restart p2pblock on firewall restarts if it's enabled
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 11:52:24 +0000 (11:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 11:52:24 +0000 (11:52 +0000)
modules/freifunk/root/etc/firewall.freifunk

index d8590fa7970157ff7dc8ba9ad58edad64f2d2769..26a6d8e9de0abbd09f75b7051dd3ab73957664d8 100644 (file)
@@ -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 )&