diff --git a/xCAT-nbroot2/dhclient-script b/xCAT-nbroot2/dhclient-script index dc1977fd3..b3cbefc7a 100755 --- a/xCAT-nbroot2/dhclient-script +++ b/xCAT-nbroot2/dhclient-script @@ -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 diff --git a/xCAT-nbroot2/xcat-cmdline.sh b/xCAT-nbroot2/xcat-cmdline.sh index d1c21b45f..4b26afe89 100755 --- a/xCAT-nbroot2/xcat-cmdline.sh +++ b/xCAT-nbroot2/xcat-cmdline.sh @@ -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"