collect: Now both scripts just execute the function getMacAddresses

Signed-off-by: 's avatarEdileuton Henrique de Oliveira <eho09@c3sl.ufpr.br>
parent 18c61580
......@@ -19,16 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
while read mac; do
newTag="<mac value=\"$mac\" type=\"string\"/>"
tags="$tags$newTag"
done < <(/sbin/ifconfig 2>&1 | awk '/HW/ {print $NF}' | sort -u)
export PREFIX="$(dirname $(readlink -f $0))"
source ${PREFIX}/../../client/common.sh || exit 1
if test -z "$tags"; then
while read mac; do
newTag="<mac value=\"$mac\" type=\"string\"/>"
tags="$tags$newTag"
done < <(/sbin/ifconfig 2>&1 | awk '/ether/ {print $2}' | sort -u)
fi
printf "${tags}\n"
getMacAdresses
......@@ -19,16 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
while read mac; do
newTag="<mac value=\"$mac\" type=\"string\"/>"
tags="$tags$newTag"
done < <(/sbin/ifconfig 2>&1 | awk '/HW/ {print $NF}' | sort -u)
export PREFIX="$(dirname $(readlink -f $0))"
source ${PREFIX}/../../client/common.sh || exit 1
if test -z "$tags"; then
while read mac; do
newTag="<mac value=\"$mac\" type=\"string\"/>"
tags="$tags$newTag"
done < <(/sbin/ifconfig 2>&1 | awk '/ether/ {print $2}' | sort -u)
fi
printf "${tags}\n"
getMacAdresses
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment