On my Archlinux I'm currently connecting to the internet via WiFi using iwctl
. Everytime I boot, I run iwctl
and then station wlan0 connect WIFINAME
.
How can I have the connection happen automatically?
This answer suggests to create a systemd service which basically runs the command I wrote above. (It also runs dhclient
, but I have to look up what it does.)
However the Archlinux wikipage on iwd reads
iwd
automatically stores network passphrases in the/var/lib/iwd
directory and uses them to auto-connect in the future. See #Network configuration.
which seems to mean that the auto-connection feature should be automatic. However it isn't for me.
- What might be preventing the autoconnection to work?
- Is setting a systemd service the only way to get it working?