sd-network: add new library

This is similar to sd-login, but exposes the state of networkd rather than logind.

Include it in libsystemd-dhcp and rename it to libsystemd-network.
This commit is contained in:
Tom Gundersen
2014-02-28 01:01:13 +01:00
parent c594cccee2
commit fe8db0c5ee
19 changed files with 637 additions and 35 deletions
+5
View File
@@ -40,6 +40,11 @@ int main(int argc, char *argv[]) {
goto out;
}
/* Always create the directories people can create inotify
* watches in. */
mkdir_label("/run/systemd/network/links", 0755);
mkdir_label("/run/systemd/network/leases", 0755);
r = manager_new(&m);
if (r < 0) {
log_error("Could not create manager: %s", strerror(-r));