diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-07-31 01:13:48 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-07-31 01:13:48 +0800 |
commit | c6ec6bf4d074db8e0870a0ccf6711836e4ce4351 (patch) | |
tree | 8bc8e9117f8ebc603da1f46cd0aebf264d273ac5 /etc/NetworkManager | |
parent | 53980c0592204397ec0b7b610146058b56d89ad3 (diff) |
I need ethernet for wired_two_computer connection
I want wired_two_computer connection and wif both on. And I need
bluetooth for mouse now so wifi card needs to be on. Also I mostly use
wifi nowadays.
Diffstat (limited to 'etc/NetworkManager')
-rwxr-xr-x | etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive b/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive deleted file mode 100755 index fa8d28ed..00000000 --- a/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# https://wiki.archlinux.org/title/NetworkManager#Use_dispatcher_to_automatically_toggle_wireless_depending_on_LAN_cable_being_plugged_in - -if [ "$1" = "enu1u2c2" ]; then - case "$2" in - up) - nmcli radio wifi off - ;; - down) - nmcli radio wifi on - ;; - esac -elif [ "$(nmcli -g GENERAL.STATE device show enu1u2c2)" = "20 (unavailable)" ]; then - nmcli radio wifi on -fi |