mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-02 19:57:19 +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…
x
Reference in New Issue
Block a user