lifecycle: support dhcp
This commit is contained in:
parent
4542c8c32f
commit
bc9dc32a38
1 changed files with 7 additions and 0 deletions
|
@ -81,6 +81,13 @@ handle_up(const struct lif_execute_opts *opts, struct lif_interface *iface, cons
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iface->is_dhcp)
|
||||||
|
{
|
||||||
|
/* XXX: determine which dhcp client we should use */
|
||||||
|
if (!lif_execute_fmt(opts, NULL, "/sbin/udhcpc -b -R -p /var/run/udhcpc.%s.pid -i %s", lifname, lifname))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue