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
This commit is contained in:
ligc 2010-03-03 03:27:16 +00:00
parent 11370b278e
commit 104f305687
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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