From 104f305687761814513fd632d5f420149827b45d Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 3 Mar 2010 03:27:16 +0000 Subject: [PATCH] primarynic and installnic can be set to mac address git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.rh | 4 ++++ xCAT-server/share/xcat/install/scripts/post.sles | 4 ++++ xCAT-server/share/xcat/install/scripts/post.sles11 | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/xCAT-server/share/xcat/install/scripts/post.rh b/xCAT-server/share/xcat/install/scripts/post.rh index 269fe8fa1..3c86c4b3a 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rh +++ b/xCAT-server/share/xcat/install/scripts/post.rh @@ -3,6 +3,10 @@ # echo "post scripts" >/root/post.log export PRINIC=#TABLE:noderes:THISNODE:primarynic# +if [ "$PRINIC" == "mac"] +then + export PRINIC=#TABLE:mac:THISNODE:mac# +fi if [ -z "$PRINIC" ] then export PRINIC=eth0 diff --git a/xCAT-server/share/xcat/install/scripts/post.sles b/xCAT-server/share/xcat/install/scripts/post.sles index 110eca9b5..f78028822 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles +++ b/xCAT-server/share/xcat/install/scripts/post.sles @@ -17,6 +17,10 @@ STARTMODE=onboot EOF export PRINIC=#TABLE:noderes:$NODE:primarynic# +if [ "$PRINIC" == "mac"] +then + export PRINIC=#TABLE:mac:$NODE:mac# +fi if [ -z "$PRINIC" ]; then export PRINIC=eth0 elif [[ `echo "$PRINIC" | grep -sqE ^[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+$ ;echo $?` == "0" ]]; then diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11 b/xCAT-server/share/xcat/install/scripts/post.sles11 index 0c45e463d..b52c7f0c8 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11 +++ b/xCAT-server/share/xcat/install/scripts/post.sles11 @@ -17,6 +17,10 @@ STARTMODE=onboot EOF export PRINIC=#TABLE:noderes:$NODE:primarynic# +if [ "$PRINIC" == "mac"] +then + export PRINIC=#TABLE:mac:$NODE:mac# +fi if [ -z "$PRINIC" ]; then export PRINIC=eth0 elif [[ `echo "$PRINIC" | grep -sqE ^[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+:[A-Fa-f0-9]+$ ;echo $?` == "0" ]]; then