News for hackers. Stuff that matters.
Re:An Ode to Linux Desktop Users Everywhere by likeclockwork on Tuesday December 06, 2016 @05:05PM (#13118735)
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

There are no comments on this comment yet.