mirror of
https://github.com/openwrt/packages.git
synced 2026-01-09 07:40:19 +04:00
net/mwan3: simplify tracking status statement command
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -738,7 +738,7 @@ mwan3_report_iface_status()
|
||||
config_list_foreach $1 track_ip mwan3_list_track_ips
|
||||
|
||||
if [ -n "$track_ips" ]; then
|
||||
if [ -n "$(ps -w | grep mwan3track | grep -v grep | sed '/.*\/usr\/sbin\/mwan3track \([^ ]*\) .*$/!d;s//\1/' | awk '$1 == "'$1'"')" ]; then
|
||||
if [ -n "$(pgrep -f "mwan3track $1")" ]; then
|
||||
tracking="active"
|
||||
else
|
||||
tracking="down"
|
||||
|
||||
Reference in New Issue
Block a user