X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=504a3f4e5348709693d6a3b6e6b34e1fbb269ad0;hb=775744005183d6d42123a9dd3274dc9d575b27ec;hp=f49eaf78e4e7969be52f37531b85fe889b930db8;hpb=d3b94484913d8edc3e04a95030ab9471ab445276;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index f49eaf7..504a3f4 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -268,7 +268,7 @@ find_files () devname=$(sys2dev "${dev}") devfstype="$(get_fstype ${devname})" - if [ "${devfstype}" = "vfat" ] || [ "${devfstype}" = "ext2" ] || [ "${devfstype}" = "ext3" ] + if [ "${devfstype}" = "vfat" ] || [ "${devfstype}" = "ext2" ] || [ "${devfstype}" = "ext3" ] || [ "${devfstype}" = "jffs2" ] then # FIXME: all supported block devices should be scanned mkdir -p "${snap_backing}" @@ -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} }