1
1
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:
j1nx 2020-07-21 10:45:54 +02:00
parent 1dffc1df50
commit 898f265f9c

View File

@ -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