From 9eb858893ca23aacfddbbdfe9a1e689d5d7a6291 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 6 Jul 2011 07:13:27 +0000 Subject: [PATCH] use mkhfi instead of ifconfig to config HFI interfaces so hfi interfaces will not be lost during reboots git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/confighfi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/confighfi b/xCAT/postscripts/confighfi index 540115679..371bfae57 100644 --- a/xCAT/postscripts/confighfi +++ b/xCAT/postscripts/confighfi @@ -75,6 +75,7 @@ fi done else +NETMASK=255.0.0.0 if [[ $NTYPE = service ]] then @@ -83,7 +84,7 @@ CLIENT_IP=`ping -q -n -c 1 -w 1 $name-hf0 | grep PING |awk '{print $3}' | sed 's if [ -n $CLIENT_IP ] then -ifconfig hf0 $CLIENT_IP +mkhfi -i hf0 -a $CLIENT_IP -m $NETMASK fi fi @@ -94,7 +95,7 @@ CLIENT_IP=`ping -q -n -c 1 -w 1 $name-hf$i | grep PING |awk '{print $3}' | sed ' if [ -n $CLIENT_IP ] then -ifconfig hf$i $CLIENT_IP +mkhfi -i hf$i -a $CLIENT_IP -m $NETMASK fi done @@ -104,7 +105,7 @@ CLIENT_IP=`ping -q -n -c 1 -w 1 $name-ml0 | grep PING |awk '{print $3}' | sed 's if [ -n $CLIENT_IP ] then -ifconfig ml0 $CLIENT_IP +mkhfi -i ml0 -a $CLIENT_IP -m $NETMASK fi fi