Disable WLan if Wired/Cable Network is available
Problem
The question says it all. All i want is that my W-Lan connection should be disabled whenever a wired connection is available. What would be the easiest way to do that in Ubuntu/Gnome? In all guides (for instance some about guessnet) i found i had to configure my whole network configuration (WPA keys, DHCP, ...), but i find that a bit too complicated for such a simple use case. I just want to disable when is connected.
Error Output
wlan0
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Disable WLan if Wired/Cable Network is available
You can drop this script to : Don't forget afterwards: This catches the legacy names and the new kernel "predictable named interfaces" that start with and then use either the bus path or the MAC address so that the name of each interface is the same on every boot. This worked with the USB-C (passthrough) and USB ethernet adapter I tried with and I'm confident it will work with built-in adapters as well.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix