D
Deleted member 99622
Guest
Hello. I am running Arch Linux on a laptop, with systemd as my init system and iwd to manage my Wi-Fi connection. This is my Neofetch output:
Sometimes I plug my laptop into an Ethernet cable i.e. when I'm just using it on my desk at home. When I do this, I notice that I have to manually disable wlan0 once I'm plugged in, or else my network connections will default to going over wlan0. I also like to have the option to spoof my MAC address before wlan0 is enabled in the first place to broadcast my default MAC address.
In order to achieve this, I want to know how to configure my laptop to start with wlan0 disabled by default, and wait until I run
It can be via a systemd service, rfkill, or even grub; I have root access to this laptop so I can do whatever is necessary. I just want to make sure that the interface can be enabled post-boot using a single command, such as
Code:
-` lonefox256@theARCHnemesis
.o+` -------------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: Inspiron 7773
`+oooooo: Kernel: 5.12.10-hardened1-1-hardened
-+oooooo+: Uptime: 8 hours, 23 mins
`/:-:++oooo+: Packages: 1206 (pacman)
`/++++/+++++++: Shell: zsh 5.8
`/++++++++++++++: Resolution: 1920x1080
`/+++ooooooooooooo/` WM: awesome
./ooosssso++osssssso+` Theme: Harmony [GTK2], Arc-Dark-Solarized-GTK [GTK3]
.oossssso-````/ossssss+` Icons: la-capitaine-icon-theme [GTK2/3]
-osssssso. :ssssssso. Terminal: st
:osssssss/ osssso+++. Terminal Font: Hack
/ossssssss/ +ssssooo/- CPU: Intel i7-8550U (8) @ 4.000GHz
`/ossssso+/:- -:/+osssso+- GPU: NVIDIA GeForce MX150
`+sso+:-` `.-/+oso: GPU: Intel UHD Graphics 620
`++:. `-/+/ Memory: 2011MiB / 15750MiB
.` `/
In order to achieve this, I want to know how to configure my laptop to start with wlan0 disabled by default, and wait until I run
sudo ip link set dev wlan0 up
before enabling it. I could use a systemd service that disables the wlan0 interface somewhere in the boot process, but that would still allow wlan0 to be enabled by default, before it is disabled, still broadcasting my default identifiers everywhere. How do I configure my computer to never enable wlan0 in the first place upon startup, only waiting until I manually tell it to turn on?It can be via a systemd service, rfkill, or even grub; I have root access to this laptop so I can do whatever is necessary. I just want to make sure that the interface can be enabled post-boot using a single command, such as
sudo ip link set dev wlan0 up
.