From 2eda9af169c948e8c1eca88c1f1743c924fe22da Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Mar 2017 12:05:07 +0100 Subject: clean up ip-command --- update-ddns.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update-ddns.in b/update-ddns.in index 063350d..a6dea00 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -65,9 +65,8 @@ do fi ips="$( - "${ipCmd}" "${ipCmdVer}" addr show ${dev} scope global | \ - grep "^\s*${inetVer}\s.*\sscope\sglobal\s" | \ - awk '{print $2}' | \ + "${ipCmd}" -o "${ipCmdVer}" addr show ${dev} scope global | \ + awk '{print $4}' | \ cut -d/ -f1 | \ sort -u )" -- cgit v1.2.3-70-g09d2