NetWatcher: detect when networkmanager has lost network connection
This is a better approach to finding both when NM has lost a network connection, and when a new network connection is made by NM. Tested with network-manager 0.9.8.8. This commit was sponsored by Cedric Staub.
This commit is contained in:
parent
a33b30d0c4
commit
bb44df206d
2 changed files with 37 additions and 25 deletions
|
@ -164,9 +164,9 @@ No pushing is done for CHANGED, since git handles ssh natively.
|
|||
|
||||
TODO:
|
||||
|
||||
* The NetWatcher does not detect network loss, only network gain,
|
||||
so PAUSE is only sent when a new network is detected, followed
|
||||
immediately by RESUME.
|
||||
* For wicd, the NetWatcher does not detect network loss, only network gain.
|
||||
So PAUSE is only sent when a new network is detected, followed
|
||||
immediately by RESUME. This was already fixed for networkmanager.
|
||||
* Remote system might not be available. Find a smart way to detect it,
|
||||
ideally w/o generating network traffic. One way might be to check
|
||||
if the ssh connection caching control socket exists, for example.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue