if I'm connecting wired, turn off wireless

This commit is contained in:
Felix Van der Jeugt 2017-06-23 13:25:14 +02:00
parent 5c4318a022
commit fa68a57a32
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -9,3 +9,7 @@ link="$(basename /sys/class/net/enp*)"
sudo ip link set "$link" down sudo ip link set "$link" down
sudo ip link set "$link" address "$mac" sudo ip link set "$link" address "$mac"
sudo ip link set "$link" up sudo ip link set "$link" up
# No more wireless
sudo sv stop wpa_supplicant