summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2020-01-10 22:47:52 +0100
committerChristian Hesse <mail@eworm.de>2022-01-12 17:48:03 +0100
commit805ce64ff3a801ceae50044d5df504680af72cca (patch)
tree57f9cb20c8a208d84f193f58faa58de03923a889
parent629a45246486346a7d2dba6ae138697638ea6daa (diff)
downloadisc-dhcp-805ce64ff3a801ceae50044d5df504680af72cca.tar.gz
[#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 <mail@eworm.de>
-rwxr-xr-xclient/scripts/linux2
1 files changed, 1 insertions, 1 deletions
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