News for hackers. Stuff that matters.
Re:One Year with ThinkPad and Linux (From MacBook Pro) by lmilcin on Friday August 28, 2020 @09:53AM (#24304819)
I have a bunch of scripts that run on every start and wakeup. Some of those scripts do things like configure my machine depending on where I am (for example, detect presence of my home WiFi).
Re:One Year with ThinkPad and Linux (From MacBook Pro) by jeffbee on Friday August 28, 2020 @10:03AM (#24304943)
It doesn't seem like you'd be able to do that on wakeup. Don't you have to put those kinds of commands in a hook that runs after a wifi link state change?
Re:One Year with ThinkPad and Linux (From MacBook Pro) by lmilcin on Friday August 28, 2020 @10:11AM (#24305033)
I am not sure what you mean. As bad as it is, systemd actually supports running stuff on wakeup. One figures, it has support for everything.
Re:One Year with ThinkPad and Linux (From MacBook Pro) by jeffbee on Friday August 28, 2020 @11:01AM (#24305698)
What I mean is that when the machine wakes up, it's not associated with a wifi network until later, so isn't it a race if such a thing runs at wakeup?
Re:One Year with ThinkPad and Linux (From MacBook Pro) by boring_twenties on Friday August 28, 2020 @11:34AM (#24306069)
OK so we sleep for 30 seconds and try again, maybe give up after 5 or 10 iterations of this. What's the problem?
Re:One Year with ThinkPad and Linux (From MacBook Pro) by lmilcin on Friday August 28, 2020 @12:26PM (#24306787)
Or have a script running on when network comes up and you check if you just freshly came from the sleep.