contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 20:05:54 +0000 (20:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 20:05:54 +0000 (20:05 +0000)
contrib/package/freifunk-p2pblock/files/freifunk-p2pblock.init

index 15cb76d..5c89fce 100644 (file)
@@ -12,6 +12,8 @@ ipt_add() {
 }
 
 start() {
+       /etc/init.d/freifunk-p2pblock enabled || return
+
        if [ ! -s "$LOCK" ]; then
                logger -s -t "$ME" 'starting p2pblock...'