summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-31 01:10:51 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-07-31 12:39:27 +0800
commit51f96d823bbde9055053f8b273f44819e422e9e4 (patch)
treebb9c2f14ed8237ac0a5411d96c74367069b894cb
parentc0ca539391327fc00df5158e2c811a076e3c7374 (diff)
I need ethernet for wired_two_computer connection
I want wired_two_computer connection and wif both on. Also I mostly use wifi nowadays. But note after `nmcli radio wifi off`, bluetooth seems still work.
-rwxr-xr-xetc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive16
-rw-r--r--etc/myconf/cfgl_meta1
2 files changed, 0 insertions, 17 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 a0f0c4c8..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" = "enp3s0" ]; then
- case "$2" in
- up)
- nmcli radio wifi off
- ;;
- down)
- nmcli radio wifi on
- ;;
- esac
-elif [ "$(nmcli -g GENERAL.STATE device show enp3s0)" = "20 (unavailable)" ]; then
- nmcli radio wifi on
-fi
diff --git a/etc/myconf/cfgl_meta b/etc/myconf/cfgl_meta
index 0d0715e4..eeca5a55 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
755 root root //etc/NetworkManager/dispatcher.d/90-sbar
755 root root //etc/NetworkManager/dispatcher.d/pre-down.d
755 root root //etc/NetworkManager/dispatcher.d/pre-down.d/20-monerod