dhcp: Pass given config file to dhclient, if present
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
aada42795c
commit
b21cb37df0
1 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,12 @@ start() {
|
||||||
${MOCK} /sbin/dhcpcd $optargs $IFACE
|
${MOCK} /sbin/dhcpcd $optargs $IFACE
|
||||||
;;
|
;;
|
||||||
dhclient)
|
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)
|
udhcpc)
|
||||||
optargs=$(eval echo $IF_UDHCPC_OPTS)
|
optargs=$(eval echo $IF_UDHCPC_OPTS)
|
||||||
|
|
Loading…
Reference in a new issue