Is there any way to bring down wireless on wired link detection using the tools mentioned in the title? Two automatic services are enabled: netctl-auto and netctl-ifplugd on coresponding interfaces.
1 Answer
When I use my EE mobile wifi I have it auto connect to a VPN, this same method would work for this;
create a file:
/etc/NetworkManager/dispatcher.d/wifi-stop.sh
This will be run when the network changes, so my script is checking which wifi is connected and if it matches ... and i'm not connected to ... vpn connect...
your script will need to check if there is a eth connection then do ifdown... stop connection ...
something like;
if [ -n "$(nmcli con show --active | grep -i eth)" ]; then nmcli con down id "..."; fi
for netctl;
(/etc/netctl/hooks)
if [ "$profile" == "eth-profile-name" -a "$action" == "CONNECT" ]; then
netctl stop wifi-profile-name
fi
-
-
-
ok I'll look into netctl hooks, thanks, I knew these exist, just wasn't sure how to use them– muthuhNov 8, 2016 at 23:42
/etc/modprobe.d/