libifupdown: lifecycle: remove built-in dhcp implementation
This commit is contained in:
parent
cd8fbb64fb
commit
7eeb7c98b5
1 changed files with 0 additions and 14 deletions
|
@ -164,13 +164,6 @@ handle_up(const struct lif_execute_opts *opts, struct lif_interface *iface, cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,13 +193,6 @@ handle_down(const struct lif_execute_opts *opts, struct lif_interface *iface, co
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iface->is_dhcp)
|
|
||||||
{
|
|
||||||
/* XXX: determine which dhcp client we should use */
|
|
||||||
if (!lif_execute_fmt(opts, NULL, "/bin/kill $(cat /var/run/udhcpc.%s.pid)", lifname))
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
skip_addresses:
|
skip_addresses:
|
||||||
if (!lif_execute_fmt(opts, NULL, "/sbin/ip link set down dev %s", lifname))
|
if (!lif_execute_fmt(opts, NULL, "/sbin/ip link set down dev %s", lifname))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue