Executing "dhclient -x" also needs option "-pf" and a PID-file. Signed-off-by: Ivan Shapovalov <intelfx100@gmail.com> --- src/connections/ethernet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/connections/ethernet b/src/connections/ethernet index 00079fc..4e3b2e4 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 -- 1.7.12.2