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:
parent
11370b278e
commit
104f305687
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user