diff options
author | Christian Hesse <mail@eworm.de> | 2020-01-10 22:47:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-04-21 14:39:28 +0200 |
commit | 36bfc122361578713f15469bd1e399959132f343 (patch) | |
tree | 1c2b97eeb73382beca127801ef3b24e5bf948d52 | |
parent | b8724f78a6904c4b6f02ad5d52faf64102e86e6a (diff) | |
download | isc-dhcp-replace-deprecated-ifconfig-with-ip.tar.gz |
replace deprecated ifconfig with ipreplace-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-x | client/scripts/linux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/scripts/linux b/client/scripts/linux index 0c429697..8c2ddeca 100755 --- a/client/scripts/linux +++ b/client/scripts/linux @@ -411,7 +411,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 |