diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-25 21:12:37 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-25 21:12:37 -0800 |
commit | ca9db1c1ef4d9adc5cab8483714d969ba71b38ea (patch) | |
tree | abad6a010669d6c13dc0508efd5abc8e3a7e2fad /etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive | |
parent | 5d2f8bdbc977ae7feb96e9f295a8e847ebcd21c7 (diff) |
pp ethernet network interface has different name
Diffstat (limited to 'etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive')
-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 |