inteno-netmode: netmode-firewall-handler: only start client-detect if it is not running

This commit is contained in:
Reidar Cederqvist 2017-05-15 15:49:27 +02:00
parent aae94da9ec
commit fafa596b11

View file

@ -40,7 +40,8 @@ test_ip() {
uci commit netmode
local pid="$(ps | grep wificontro[l] | awk '/repeater/ {print $1}')"
[ "$pid" != "" ] && kill $pid
/sbin/netmode-client-detect &
pid="$(pidof netmode-client-detect)"
[ "$pid" == "" ] && /sbin/netmode-client-detect &
}
fi
}