diff options
| author | Jesse Hathaway <jesse@mbuki-mvuki.org> | 2007-10-30 14:10:58 -0400 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | bf36396d635f664157bef6448040c967dc96d563 (patch) | |
| tree | 351a2408531cd27cd5b68ad9dffa861d933c1943 /scripts/live-helpers | |
| parent | 5ebecb1695a42c5497850e9d5a2e4ee351148562 (diff) | |
| download | live-boot-bf36396d635f664157bef6448040c967dc96d563.tar.gz live-boot-bf36396d635f664157bef6448040c967dc96d563.zip | |
add support for mounting the cow device on an nfs volume
Diffstat (limited to 'scripts/live-helpers')
| -rw-r--r-- | scripts/live-helpers | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers index ccc3a4a..f49eaf7 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -288,3 +288,17 @@ find_files () done done } + +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 +} |
