diff --git a/xCAT-server/share/xcat/install/scripts/post.rh.common b/xCAT-server/share/xcat/install/scripts/post.rh.common index d9cd19a5a..f5b5092c5 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rh.common +++ b/xCAT-server/share/xcat/install/scripts/post.rh.common @@ -21,7 +21,7 @@ then #such as BOOTIF=01-40-f2-e9-68-de-90 if [ "${#MACADDR}" == "20" ]; then MACADDR=${MACADDR:3:21} - fi + fi #export PRINIC=`ifconfig -a|grep -i "hwaddr ${karg#*=01:}"|awk '{print $1}'` export PRINIC=`ip -o link|grep -i "$MACADDR"|awk '{print $2}'|sed s/://` fi