2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 03:00:26 +00:00

Remove trailing spaces in file xCAT-server/share/xcat/install/scripts/post.rh.common

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent 13a747e861
commit 3db3e9f969

View File

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