diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-09-17 11:19:52 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-09-17 11:19:52 +0200 |
commit | 2c1b0cf5775e0af2ef29f9090a608b87caf4de98 (patch) | |
tree | a8fabe54faa8af36627ad6ab53986820f451ce89 /installer/opengnsys_update.sh | |
parent | 26000016357895d6d3e81b5c82c1d50f3f7013fd (diff) |
#914: Fix duplicates when detecting network parameters and get main nameserver with Systemd.
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-x | installer/opengnsys_update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 5ea716de..dabd6177 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -496,7 +496,7 @@ function getNetworkSettings() SERVERIP="$ServidorAdm" DEVICES="$(ip -o link show up | awk '!/loopback/ {sub(/:.*/,"",$2); print $2}')" for dev in $DEVICES; do - [ -z "$SERVERIP" ] && SERVERIP=$(ip -o addr show dev $dev | awk '$3~/inet$/ {sub (/\/.*/, ""); print ($4)}') + [ -z "$SERVERIP" ] && SERVERIP=$(ip -o addr show dev $dev | awk '$3~/inet$/ {sub (/\/.*/, ""); print ($4); exit;}') done } |