From: Christian Hesse Date: Fri, 10 Jan 2020 21:47:52 +0000 (+0100) Subject: [#77,!53] replace deprecated ifconfig with ip X-Git-Tag: v4_4_3b1^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=805ce64ff3a801ceae50044d5df504680af72cca;p=thirdparty%2Fdhcp.git [#77,!53] replace deprecated ifconfig with ip For linux scripts the deprected ifconfig has been replaced with ip. However there is one leftover, replace that as well. Closes #77 Signed-off-by: Christian Hesse --- diff --git a/client/scripts/linux b/client/scripts/linux index 63257bca..c4e51f6d 100755 --- a/client/scripts/linux +++ b/client/scripts/linux @@ -419,7 +419,7 @@ case "$reason" in interface_up_wait_time=5 for i in $(seq 0 ${interface_up_wait_time}) do - ifconfig ${interface} | grep RUNNING >/dev/null 2>&1 + ${ip} link show dev ${interface} | grep -q LOWER_UP 2>&1 if [ $? -eq 0 ]; then break; fi