Re: Starting programs when no internet connection is available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Samuel Sieb wrote:
>> NetworkManager has a few different states of connected.  There are
>> at least NETWORK_LOCAL which seems to mean it has an IP address and
>> NETWORK_GLOBAL which means it has internet access.  There might
>> another one in between as well.

Joe Zeff:
> Considering that not all computers use DHCP, NETWORK_LOCAL should 
> probably include pinging the gateway but probably doesn't.

That still wouldn't prove the internet is accessible.  My ISP could be
failing, or suspended my account, or the cable between my gateway to my
ISP unplugged, but my gateway would still be alive (in itself).

You'd have to do some other check that went out onto the internet, to
prove you were fully on-line.  e.g. Check the time on a NTP server, use
one of those "find my outside IP" services, etc.

Even then, that only checks what it checks.  Your external mail service
could be totally inaccessible while you could still be able to surf the
web.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 4.15.7-200.fc26.x86_64 #1 SMP Wed Feb 28 18:01:11 UTC 2018 x86_64

Boilerplate:  All mail to my mailbox is automatically deleted.
There is no point trying to privately email me, I only get to see
the messages posted to the mailing list.

The mindset of software designers:  You know that feature that you, and
many thousands of other users, found useful?  We removed it, because
we didn't like it.  We also hard-coded the default settings that you
keep customising.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux