summaryrefslogtreecommitdiff
path: root/scripts/live-helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-10 16:22:23 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:06 +0100
commit7f63779595a2e498fbe051e441d2e5f41fa1f419 (patch)
tree35e5caa8f5e78f4ac334bc61a500957d8b7aa563 /scripts/live-helpers
parentc4912ed805864433954e13e3b33b597241e74829 (diff)
downloadlive-boot-7f63779595a2e498fbe051e441d2e5f41fa1f419.tar.gz
live-boot-7f63779595a2e498fbe051e441d2e5f41fa1f419.zip
Fixing some coding style issues.
Diffstat (limited to 'scripts/live-helpers')
-rw-r--r--scripts/live-helpers24
1 files changed, 14 insertions, 10 deletions
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}
}