summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/connections/ethernet8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 94c04a1..33aae2f 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -229,8 +229,8 @@ ethernet_down() {
if [[ "$IP" == "dhcp" ]]; then
if checkyesno "${DHCLIENT:-no}"; then
if [[ -f "/run/dhclient-$INTERFACE.pid" ]]; then
- report_debug ethernet_down dhclient -q -x "$INTERFACE"
- dhclient -q -x "$INTERFACE" &>/dev/null
+ report_debug ethernet_down dhclient -q -x "$INTERFACE" -pf "/run/dhclient-$INTERFACE.pid"
+ dhclient -q -x "$INTERFACE" -pf "/run/dhclient-$INTERFACE.pid" &>/dev/null
#dhclient -q -r "$INTERFACE" &>/dev/null
fi
else
@@ -242,8 +242,8 @@ ethernet_down() {
fi
if [[ "$IP6" == dhcp* ]]; then
if [[ -f "/run/dhclient6-$INTERFACE.pid" ]]; then
- report_debug ethernet_down dhclient -6 -q -x "$INTERFACE"
- dhclient -6 -q -x "$INTERFACE" &>/dev/null
+ report_debug ethernet_down dhclient -6 -q -x "$INTERFACE" -pf "/run/dhclient6-$INTERFACE.pid"
+ dhclient -6 -q -x "$INTERFACE" -pf "/run/dhclient6-$INTERFACE.pid" &>/dev/null
report_debug ethernet_down /bin/kill $(< /run/dhclient6-$INTERFACE.pid)
/bin/kill $(< /run/dhclient6-$INTERFACE.pid) &>/dev/null
fi