diff options
Diffstat (limited to 'etc/NetworkManager')
-rwxr-xr-x | etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive b/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive index a0f0c4c8..fa8d28ed 100755 --- a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive +++ b/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive @@ -2,7 +2,7 @@ # https://wiki.archlinux.org/title/NetworkManager#Use_dispatcher_to_automatically_toggle_wireless_depending_on_LAN_cable_being_plugged_in -if [ "$1" = "enp3s0" ]; then +if [ "$1" = "enu1u2c2" ]; then case "$2" in up) nmcli radio wifi off @@ -11,6 +11,6 @@ if [ "$1" = "enp3s0" ]; then nmcli radio wifi on ;; esac -elif [ "$(nmcli -g GENERAL.STATE device show enp3s0)" = "20 (unavailable)" ]; then +elif [ "$(nmcli -g GENERAL.STATE device show enu1u2c2)" = "20 (unavailable)" ]; then nmcli radio wifi on fi |