summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2021-07-01 17:19:00 +0200
committerRamón M. Gómez <ramongomez@us.es>2021-07-01 17:19:00 +0200
commit87b8c4698846f84e4bc283efc7ec49243ce8a904 (patch)
tree706248c49994bbda42002bf7c228ffa223fde8d7 /installer/opengnsys_update.sh
parentedd6171f8bd5f445edc8ce3ca313401861142d3d (diff)
#1048: Installer detects container network interface as "eth0@ifNN".
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 3a21072d..2214137e 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -565,7 +565,7 @@ function getNetworkSettings()
local dev
SERVERIP="$ServidorAdm"
- DEVICES="$(ip -o link show up | awk '!/loopback/ {sub(/:.*/,"",$2); print $2}')"
+ 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); exit;}')
done