diff options
author | Erich Eckner <git@eckner.net> | 2017-03-01 12:05:07 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-03-01 12:05:07 +0100 |
commit | 2eda9af169c948e8c1eca88c1f1743c924fe22da (patch) | |
tree | 7a47f9e9ce981ac7d1b438744a49b9b8082bde04 /update-ddns.in | |
parent | c2e9a88d028424c37dfc8b9a92869b03672ba8c8 (diff) | |
download | update-ddns-2eda9af169c948e8c1eca88c1f1743c924fe22da.tar.xz |
clean up ip-command
Diffstat (limited to 'update-ddns.in')
-rw-r--r-- | update-ddns.in | 5 |
1 files 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 )" |