this post was submitted on 17 May 2025
8 points (83.3% liked)
Arch Linux
8753 readers
1 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Easiest way would be to just add a
sleep 15
command at the top of the script. Time how long it takes your wifi to come up, and adjust the sleep time with like a 2-3 second buffer in case it takes linger for some reason.More exact would be to create a systemd service for your script that depends on network connectivity to execute.
Yep, I know. But when I only depend on
this doesn't mean, I have a working internet connection. That's why the loop.
Or is that wrong?