void-packages/srcpkgs/dhcp/patches/0002-iproute2.patch

13 lines
487 B
Diff

diff --git a/client/scripts/linux b/client/scripts/linux
index 5fb16121..c4cef632 100755
--- client/scripts/linux
+++ client/scripts/linux
@@ -362,7 +362,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