zym0805

netctl

netctl is a CLI-based tool used to configure and manage network connections via profiles. It is a native Arch Linux project for network configuration.

 

https://wiki.archlinux.org/index.php/Netctl

 

 

Problems with netctl-auto on resume

Sometimes netctl-auto fails to reconnect when the system resumes from suspend. An easy solution is to restart the service for netctl-auto. This can be automated with an additional service like the following:

/etc/systemd/system/netctl-auto-resume@.service
[Unit]
Description=restart netctl-auto on resume.
Requisite=netctl-auto@%i.service
After=suspend.target

[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart netctl-auto@%i.service

[Install]
WantedBy=suspend.target

To enable this service for your wireless card, for example, run systemctl enable netctl-auto-resume@wlan0.service as root. Change wlan0 to the required network interface.

分类:

技术点:

相关文章:

  • 2021-11-01
  • 2021-08-01
  • 2021-10-18
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-04-24
猜你喜欢
  • 2021-05-24
  • 2021-12-10
  • 2021-12-05
  • 2021-06-13
  • 2021-12-06
  • 2021-08-25
相关资源
相似解决方案