diff --git a/net/mwan3/files/usr/libexec/rpcd/mwan3 b/net/mwan3/files/usr/libexec/rpcd/mwan3 index dbc5f57640..2ced4bb153 100755 --- a/net/mwan3/files/usr/libexec/rpcd/mwan3 +++ b/net/mwan3/files/usr/libexec/rpcd/mwan3 @@ -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