X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=5e1730bf652ea7a93ee2e594a5dc99ed2a38abc0;hb=baa2ce2723e1b7925b596d3fc12a62e8a99e2cb4;hp=f49eaf78e4e7969be52f37531b85fe889b930db8;hpb=b64e86e220b3313288a90d36c8b557e92bbd4ee5;p=live-boot-grml.git 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} }