From bf36396d635f664157bef6448040c967dc96d563 Mon Sep 17 00:00:00 2001 From: Jesse Hathaway Date: Tue, 30 Oct 2007 14:10:58 -0400 Subject: add support for mounting the cow device on an nfs volume --- scripts/live-helpers | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts/live-helpers') 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 +} -- cgit v1.2.3