Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jeffbee
on Aug 28, 2020
|
parent
|
context
|
favorite
| on:
One Year with ThinkPad and Linux (From MacBook Pro...
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?
lmilcin
on Aug 28, 2020
[–]
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.
jeffbee
on Aug 28, 2020
|
parent
[–]
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?
boring_twenties
on Aug 28, 2020
|
root
|
parent
[–]
OK so we sleep for 30 seconds and try again, maybe give up after 5 or 10 iterations of this. What's the problem?
lmilcin
on Aug 28, 2020
|
root
|
parent
[–]
Or have a script running on when network comes up and you check if you just freshly came from the sleep.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: