diff --git a/executor-scripts/linux/dhcp b/executor-scripts/linux/dhcp index 3d32a0b..30d1903 100755 --- a/executor-scripts/linux/dhcp +++ b/executor-scripts/linux/dhcp @@ -21,7 +21,12 @@ start() { ${MOCK} /sbin/dhcpcd $optargs $IFACE ;; dhclient) - ${MOCK} /usr/sbin/dhclient -pf /var/run/dhclient.$IFACE.pid $IFACE + # Specific config file given? + if [ -n "$IF_DHCP_CONFIG" ]; then + optargs="$optargs -cf $IF_DHCP_CONFIG" + fi + + ${MOCK} /usr/sbin/dhclient -pf /var/run/dhclient.$IFACE.pid $optarts $IFACE ;; udhcpc) optargs=$(eval echo $IF_UDHCPC_OPTS)