From 22a9d2ba01f0794f894f7eb0849dfab8915aec1f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 7 Jun 2009 20:05:54 +0000 Subject: [PATCH] contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled --- contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init | 2 ++ 1 file changed, 2 insertions(+) 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...' -- 2.25.1