Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifireconnect: wget rather than ping #103

Closed
macmpi opened this issue Nov 8, 2017 · 2 comments
Closed

wifireconnect: wget rather than ping #103

macmpi opened this issue Nov 8, 2017 · 2 comments

Comments

@macmpi
Copy link

macmpi commented Nov 8, 2017

You may want to consider using something like below instead of ping here:
wget -q --tries=10 --timeout=20 --spider http://google.com > /dev/null 2>&1.

Indeed in some case ping may have execute rights issues or even be blocked by some ISPs.
It's a fairly commonly used method to check internet availability and proper name resolution; wget is available for any user.

@balbuze
Copy link
Owner

balbuze commented Nov 9, 2017

I upload a new version using wget. But not tested...

@macmpi
Copy link
Author

macmpi commented Nov 10, 2017

Can't test either (hence I did not originally submit a PR), but confident it should work as I'm using similar thing here.
Hope it helped.

@macmpi macmpi closed this as completed Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants