From: Jo-Philipp Wich Date: Sun, 7 Jun 2009 20:05:54 +0000 (+0000) Subject: contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled X-Git-Tag: 0.9.0~235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22a9d2ba01f0794f894f7eb0849dfab8915aec1f;p=oweals%2Fluci.git contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled --- 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...'