summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorjcxifre <jcxifre@unizar.es>2010-02-19 07:11:31 +0000
committerjcxifre <jcxifre@unizar.es>2010-02-19 07:11:31 +0000
commit61c14c39d4720cf66babcda7e024acbe9c223408 (patch)
treee6ccb90aee0a1822565ba7ce6751b6bcf02389c4 /client/engine
parent59d49e836ea870732c381053c5b1f0dd8d2edf30 (diff)
git-svn-id: https://opengnsys.es/svn/trunk@762 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Net.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Net.lib b/client/engine/Net.lib
index b98fa478..eca1b156 100755
--- a/client/engine/Net.lib
+++ b/client/engine/Net.lib
@@ -64,7 +64,7 @@ function ogGetMacAddress ()
{
local MAC
# Obtener direcciones Ethernet.
-MAC=$(ip -o addr show | awk '$2!~/lo/ && /ether/ {printf ("%s ", toupper($11))}')
+MAC=$(ip address show | awk '$2!~/lo/ {readline; if ($1~/ether/) printf ("%s ", toupper($2));}')
# Mostrar sólo la primera.
echo ${MAC%% *}
}