3 ms·
Hey, You can make a oneshot systemd unit that's WantedBy=suspend.target that just restarts it for you. It should look something like this(didn't test because
by likeclockwork 10y ago
Hey,
You can make a oneshot systemd unit that's WantedBy=suspend.target that just restarts it for you.
It should look something like this(didn't test because I'm not on my laptop right now):
[Unit]
Description=Restart NetworkManager after resume from suspend.
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart NetworkManager.service
[Install]
WantedBy=suspend.target