From c6ec6bf4d074db8e0870a0ccf6711836e4ce4351 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 31 Jul 2025 01:13:48 +0800 Subject: 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. --- etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive | 16 ---------------- etc/myconf/cfgl_meta | 1 - 2 files changed, 17 deletions(-) delete mode 100755 etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive (limited to 'etc') 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 diff --git a/etc/myconf/cfgl_meta b/etc/myconf/cfgl_meta index 98d31e8e..3c4d62e8 100644 --- a/etc/myconf/cfgl_meta +++ b/etc/myconf/cfgl_meta @@ -27,7 +27,6 @@ 600 root root //etc/myconf/cfgl_meta 755 root root //etc/NetworkManager 755 root root //etc/NetworkManager/dispatcher.d -755 root root //etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive 700 root root //etc/NetworkManager/system-connections 600 root root //etc/NetworkManager/system-connections/wired_two_computer.nmconnection 644 root root //etc/nftables.conf -- cgit v1.2.3-70-g09d2