From 7f63779595a2e498fbe051e441d2e5f41fa1f419 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 10 Nov 2007 16:22:23 +0100 Subject: Fixing some coding style issues. --- scripts/live-helpers | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'scripts/live-helpers') diff --git a/scripts/live-helpers b/scripts/live-helpers index f49eaf7..5e1730b 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -291,14 +291,18 @@ find_files () get_mac () { - mac="" - for adaptor in /sys/class/net/*;do - status=$(cat ${adaptor}/iflink) - if [ ${status} -eq 2 ]; - then - mac=$(cat ${adaptor}/address) - mac=$(echo ${mac}|sed 's/:/-/g'|tr '[a-z]' '[A-Z]') - fi - done - echo $mac + mac="" + + for adaptor in /sys/class/net/* + do + status="$(cat ${adaptor}/iflink)" + + if [ "${status}" -eq 2 ] + then + mac="$(cat ${adaptor}/address)" + mac="$(echo ${mac} | sed 's/:/-/g' | tr '[a-z]' '[A-Z]')" + fi + done + + echo ${mac} } -- cgit v1.2.3