The sample hv_get_dhcp_info script was originally supposed to be replaced by downstream distributions, but:
- Network Manager and systemd-networkd are used across many distributions - Debian's ifupdown is not only used in Debian derivatives but also Alpine and Void Linux This adds support for all of those. The check for DHCP in network-scripts configuration files was also quite lax. This makes the regex a bit more strict. Ben. Ben Hutchings (2): tools/hv: Make the sample hv_get_dhcp_info script more useful tools/hv: Make network-scripts DHCP status check more specific tools/hv/hv_get_dhcp_info.sh | 87 +++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 12 deletions(-)
signature.asc
Description: PGP signature