You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in case the router is a DHCP relay the /sys/class/net/wlo1/operstate still shows up and the computer wakes up even if the main router is down.
Since i want "connection to a network" being if the main router is up, pinging the default gateway seems to be the best option
valid connectivity method options: v2, v3, v2+v3
also resolves#4
## Difference between different connectivity methods:
- v2: default, will work for almost everyone. see's the carrier and operstate values in `/sys/class/net/<device>/` to decide if the device is up or not
- v3: pings the default gateway (or the gateways for wired/wireless devices if specified) to check for connectivity. if ping fails then device is offline
- v2+v3: uses both the methods to check for connectivity. basically an: `v2() and v3()`. aka `and` short-circuiting happens.
in case the router is a DHCP relay the
/sys/class/net/wlo1/operstate
still showsup
and the computer wakes up even if the main router is down.Since i want "connection to a network" being if the main router is up, pinging the default gateway seems to be the best option
src: https://stackoverflow.com/a/932187
The text was updated successfully, but these errors were encountered: