diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-11-10 16:22:23 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | 7f63779595a2e498fbe051e441d2e5f41fa1f419 (patch) | |
| tree | 35e5caa8f5e78f4ac334bc61a500957d8b7aa563 /scripts/live-helpers | |
| parent | c4912ed805864433954e13e3b33b597241e74829 (diff) | |
| download | live-boot-7f63779595a2e498fbe051e441d2e5f41fa1f419.tar.gz live-boot-7f63779595a2e498fbe051e441d2e5f41fa1f419.zip | |
Fixing some coding style issues.
Diffstat (limited to 'scripts/live-helpers')
| -rw-r--r-- | scripts/live-helpers | 24 |
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} } |
