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