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