summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-07 20:05:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-07 20:05:54 +0000
commit22a9d2ba01f0794f894f7eb0849dfab8915aec1f (patch)
treed431d2f94cb8ab06edf646e3e264ef781f5a154b
parent9594eed525807ad8810ac30481b60a0cebd9a895 (diff)
contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled
-rw-r--r--contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init b/contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init
index 15cb76d0f..5c89fce26 100644
--- a/contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init
+++ b/contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init
@@ -12,6 +12,8 @@ ipt_add() {
}
start() {
+ /etc/init.d/freifunk-p2pblock enabled || return
+
if [ ! -s "$LOCK" ]; then
logger -s -t "$ME" 'starting p2pblock...'