mirror of
https://github.com/openwrt/packages.git
synced 2026-12-03 04:55:30 +04:00
mwan3: remove call to network_is_up
It calls jsonfilter but can be avoided as we know network is up if uptime is present. Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
1 parent
a6a7f0b21b
commit
bfdbacca56
1 file changed
+1
-1
@@ -108,7 +108,7 @@ get_mwan3_status() {
|
||||
|
||||
if [ -f "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS" ]; then
|
||||
network_get_uptime uptime "$iface"
|
||||
network_is_up "$iface" && up="1"
|
||||
[ -n "$uptime" ] && up=1 || up=0
|
||||
readfile status "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS"
|
||||
else
|
||||
uptime=0
|
||||
|
||||
Reference in new issue
Block a user