dhcp executor: Pass correct arguments to dhclient

They are opt-args, not pop-tarts.
This commit is contained in:
A. Wilcox 2020-12-14 11:23:59 -06:00
parent 31bc5c3b10
commit b9d6c190e4
No known key found for this signature in database
GPG key ID: CB29CB51922B9D14

View file

@ -26,7 +26,7 @@ start() {
optargs="$optargs -cf $IF_DHCP_CONFIG" optargs="$optargs -cf $IF_DHCP_CONFIG"
fi fi
${MOCK} /usr/sbin/dhclient -pf /var/run/dhclient.$IFACE.pid $optarts $IFACE ${MOCK} /usr/sbin/dhclient -pf /var/run/dhclient.$IFACE.pid $optargs $IFACE
;; ;;
udhcpc) udhcpc)
optargs=$(eval echo $IF_UDHCPC_OPTS) optargs=$(eval echo $IF_UDHCPC_OPTS)