https://github.com/lilydjwg/wait-online
Wait until we're connected to the Internet
https://github.com/lilydjwg/wait-online
archlinux internet-connection linux-scripts systemd-service
Last synced: 20 days ago
JSON representation
Wait until we're connected to the Internet
- Host: GitHub
- URL: https://github.com/lilydjwg/wait-online
- Owner: lilydjwg
- License: gpl-3.0
- Created: 2017-09-07T06:44:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T06:51:21.000Z (over 2 years ago)
- Last Synced: 2024-05-23T04:46:47.285Z (11 months ago)
- Topics: archlinux, internet-connection, linux-scripts, systemd-service
- Language: Python
- Size: 20.5 KB
- Stars: 41
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wait until we're connected to the Internet.
The Internet may be behind a captive portal, so let's wait for that.
## Installation
If you are using Arch Linux, just `makepkg` and use pacman to install.
If not, you're on your own (patches welcome).
## Service usage
Run `sudo systemctl enable --now wait-online` after installation to activate.
This service will be ordered before `network-online.target`, so your services needing Internet access will be started at the correct time.
There is also a `wait-online-onresume.service` that you can enable for restarting `wait-online.service` after resuming from a sleep so that the `wait-online` command works well.
## Command line usage
`check-online` will check if we are connected to the Internet and notify `wait-online`. This is the service script.
`wait-online` will wait until we are connected to the Internet (need `check-online` running).