mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-23 07:22:24 +01:00
MycroftOS: Turn On/Off wifi if LAN connection is up.
This commit is contained in:
parent
1dffc1df50
commit
898f265f9c
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "eth0" ]; then
|
||||
case "$2" in
|
||||
up)
|
||||
nmcli radio wifi off
|
||||
;;
|
||||
down)
|
||||
nmcli radio wifi on
|
||||
;;
|
||||
esac
|
||||
fi
|
Loading…
Reference in New Issue
Block a user