mirror of
https://github.com/openwrt/luci.git
synced 2026-09-01 14:41:55 +04:00
contrib/package/freifunk-p2pblock: don't execute start action if init script is disabled
This commit is contained in:
@@ -12,6 +12,8 @@ ipt_add() {
|
||||
}
|
||||
|
||||
start() {
|
||||
/etc/init.d/freifunk-p2pblock enabled || return
|
||||
|
||||
if [ ! -s "$LOCK" ]; then
|
||||
logger -s -t "$ME" 'starting p2pblock...'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user