Hide nmcli errors
This commit is contained in:
parent
caf5bf87dc
commit
d0221c90f3
@ -444,9 +444,9 @@ networkmanager_is_running() {
|
|||||||
local NMCLI_OUT
|
local NMCLI_OUT
|
||||||
networkmanager_exists || return 1
|
networkmanager_exists || return 1
|
||||||
if [[ $NM_OLDER_VERSION -eq 1 ]]; then
|
if [[ $NM_OLDER_VERSION -eq 1 ]]; then
|
||||||
NMCLI_OUT=$(nmcli -t -f RUNNING nm)
|
NMCLI_OUT=$(nmcli -t -f RUNNING nm 2> /dev/null)
|
||||||
else
|
else
|
||||||
NMCLI_OUT=$(nmcli -t -f RUNNING g)
|
NMCLI_OUT=$(nmcli -t -f RUNNING g 2> /dev/null)
|
||||||
fi
|
fi
|
||||||
[[ "$NMCLI_OUT" == "running" ]]
|
[[ "$NMCLI_OUT" == "running" ]]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user