This is an updated patch that fix more problems.
dhcpd version detection was assuming that the version number started with a V. on centos6, dhcpd V4 has no more "V" in its version. This patch fixes this detection method as well. This will work for all passed and future version that match \d+(\.\d+)* numbering scheme
ifconfig was called without setting LC_ALL=C thus on FR system as example, inet addr is rendered "inet adr" and thus the addr with 2 "d" won't match.
finaly, we do not hang on unconfigured interfaces.
De : LAHAYE Olivier
Date d'envoi : mercredi 27 juin 2012 15:18
À : oscar-devel@...
Objet : [Oscar-devel] mkdhcpconf unconfigured interfaces patch
Here is a patch on mkdhcpconf that prevent mkdhcpconf to fail when trying to parse and handle an unconfigured network interface.