diff options
author | Botao Sun <botao.sun@linaro.org> | 2014-10-21 23:15:48 +1100 |
---|---|---|
committer | Botao Sun <botao.sun@linaro.org> | 2014-10-21 23:16:05 +1100 |
commit | 3daf4c21e218bc269ebd03006a41a18369064603 (patch) | |
tree | ae0c97953b7cbac6f2189cd866be801c6b319cb5 /openembedded/scripts | |
parent | d8df19275b1e82cc849df6eab68b73d155c32806 (diff) |
ethernet.sh: POSIX Compliant Update.
This change is to make the test script to be POSIX compliant.
Original patch comes from:
Lucas Dutra Nunes <ldnunes@ossystems.com.br>
Signed-off by: Botao Sun <botao.sun@linaro.org>
Change-Id: Icd572b9a99879abf6ca6a46d81709e7b7cb2e157
Diffstat (limited to 'openembedded/scripts')
-rwxr-xr-x | openembedded/scripts/ethernet.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/openembedded/scripts/ethernet.sh b/openembedded/scripts/ethernet.sh index a9e4519..034a20e 100755 --- a/openembedded/scripts/ethernet.sh +++ b/openembedded/scripts/ethernet.sh @@ -1,8 +1,8 @@ -#!/bin/bash +#!/bin/sh # -# Ethernet test. +# Ethernet Test on OpenEmbedded. # -# Copyright (C) 2012, Linaro Limited. +# Copyright (C) 2010 - 2014, Linaro Limited. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,10 +16,9 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Author: Senthil Kumaran <senthil.kumaran@linaro.org> -# ifconfig eth0 > ethernet.log ifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}' |