Correct bootnic variable in nbroot2

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-07-14 17:37:30 +00:00
parent c4db886958
commit db3cd5cc2f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ elif [ $reason = "BOUND" ]; then
fi
if [ ! -z "$new_host_name" ]; then
hostname $new_host_name
lldptool -T -i $interface -V 5 enableTx=yes
lldptool -T -i $interface -V 5 enableTx=yes
fi
if [ ! -z "$new_domain_name" ]; then
echo search $new_domain_name >> /etc/resolv.conf

View File

@ -12,7 +12,7 @@ if [ ! -z "$BOOTIF" ]; then
echo -n "Waiting for device with address $BOOTIF to appear.."
gripeiter=300
while [ -z "$bootnic" ]; do
bootnic=`ip link show|grep -B1 $BOOTIF|grep mtu|awk '{print $2}'`
bootnic=`ip link show|grep -B1 $BOOTIF|grep mtu|awk '{print $2}'|sed -e 's/:$//'`
sleep 0.1
if [ $gripeiter = 0 ]; then
echo "ERROR"