mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Workaround for loopback interface
We never get any NEWLINK message for lo since it as an interface exists very early. So we add this workaround when lo comes up so services can depend on exists for lo as well as for other interfaces. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -129,6 +129,10 @@ static void nl_link(struct nlmsghdr *nlmsg)
|
||||
else
|
||||
cond_clear(msg);
|
||||
|
||||
if (string_compare("lo", ifname)) {
|
||||
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
||||
cond_set(msg);
|
||||
}
|
||||
} else {
|
||||
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
||||
cond_set(msg);
|
||||
|
||||
Reference in New Issue
Block a user