M2 networkmanager: the watcher hears the rating
uplink-tools watch hears the network manager's PropertiesChanged on the system bus, keeps sign-in-asked and sign-in-ended as the rules say, at most 256 of them, and subscribes again when the system bus's socket comes back or on rating-again; nothing reads the rating on a timer. Builds: design 08 sign-in-page §12, §14, §20, §21, §22
This commit is contained in:
@@ -51,5 +51,8 @@ func parseNmcli(out string) map[string]LinkDNS {
|
||||
return links
|
||||
}
|
||||
|
||||
// holder is what networkmanager adds to the seat's verbs (design 08 sign-in-page §11).
|
||||
func holder(m Machine) holderOwn { return holderOwn{} }
|
||||
// holder is what networkmanager adds to the seat's verbs (design 08 sign-in-page §11): the watcher, `uplink-tools
|
||||
// watch`.
|
||||
func holder(m Machine) holderOwn {
|
||||
return holderOwn{Commands: map[string]func([]string) error{"watch": watch}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user