diff options
author | ramon <ramongomez@us.es> | 2010-03-10 13:32:11 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-03-10 13:32:11 +0000 |
commit | 59526328b0966241bc1ae4108065a03c1b062697 (patch) | |
tree | 3be98d55ffb9aa981f7cb732d337df6582647de4 /installer | |
parent | 5b29477b8387628dca701f5fc0c7572ee49f67bd (diff) |
Pequeña corrección en instalador.
git-svn-id: https://opengnsys.es/svn/trunk@806 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_installer.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 5b09739c..7f193f5b 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -498,6 +498,7 @@ function getNetworkSettings() NETMASK=$(LANG=C ifconfig $MAINDEV | awk '/Mask/ {sub(/.*:/,"",$4); print $4}') NETBROAD=$(ip -o addr show dev $MAINDEV | awk '$3~/inet$/ {print ($6)}') NETIP=$(netstat -nr | grep $MAINDEV | awk '$1!~/0\.0\.0\.0/ {print $1}') + NETIP=${NETIP%% *} ROUTERIP=$(netstat -nr | awk '$1~/0\.0\.0\.0/ {print $2}') DNSIP=$(awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n1) if [ -z "$NETIP" -o -z "$NETMASK" ]; then |