mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-10 19:27:37 +01:00
inteno-netmode: netmode-firewall-handler: only start client-detect if it is not running
This commit is contained in:
parent
aae94da9ec
commit
fafa596b11
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue