mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: remove unused device lookup in status check
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
@@ -77,9 +77,8 @@ get_mwan3_status() {
|
|||||||
local online=0
|
local online=0
|
||||||
local offline=0
|
local offline=0
|
||||||
local up="0"
|
local up="0"
|
||||||
local enabled device time_p time_n time_u time_d status track_status
|
local enabled time_p time_n time_u time_d status track_status
|
||||||
|
|
||||||
network_get_device device $1
|
|
||||||
|
|
||||||
if [ "${iface}" = "${iface_select}" ] || [ "${iface_select}" = "" ]; then
|
if [ "${iface}" = "${iface_select}" ] || [ "${iface_select}" = "" ]; then
|
||||||
track_status="$(mwan3_get_mwan3track_status "$1")"
|
track_status="$(mwan3_get_mwan3track_status "$1")"
|
||||||
|
|||||||
Reference in New Issue
Block a user