gui-programs: don't disable wifi if hotspot on
This commit is contained in:
parent
4210e37496
commit
7e864564df
|
@ -72,7 +72,9 @@ in
|
|||
{
|
||||
result=$(${nmcli} dev | ${grep} "ethernet" | ${grep} -w "connected")
|
||||
if [ -n "$result" ]; then
|
||||
if ! ${nmcli} dev | ${grep} -q "hotspot"; then
|
||||
${nmcli} radio wifi off
|
||||
fi
|
||||
else
|
||||
${nmcli} radio wifi on
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue