For now, we accept both link-local and routable addresses, maybe we want to
restrict ourselves to routable addresses only.
* timesyncd:
- hookup with networkd: NTP servers from dhcp
- - hookup with networkd: listen to online/offline state
* a way for container managers to turn off getty starting via $container_headless= or so...
int r;
r = sd_network_get_operational_state(&state);
- if (r >= 0 && streq("carrier", state))
+ if (r >= 0 && (streq("routable", state) || streq("degraded", state)))
return true;
else
return false;