-Fix issue where network diagnostic suggestions were not being displayed both on the console and on ssh login
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2c703ff14b
commit
24c610374d
@ -109,9 +109,11 @@ until [ $extrat == 80 -o -z "$NICSTOWAIT" ]; do
|
||||
NICSTOWAIT=`echo $NICSTOWAIT|sed -e s/$nic//`
|
||||
if [ $extrat -gt 45 ]; then
|
||||
echo "Warning: $nic took more than 45 seconds to receive DHCP reply, spanning-tree may not be configured well, examine switch configuration" >> /etc/motd
|
||||
echo "Warning: $nic took more than 45 seconds to receive DHCP reply, spanning-tree may not be configured well, examine switch configuration"
|
||||
fi
|
||||
elif [ $extrat == 15 ]; then
|
||||
if ethtool $nic | grep "Link detected: no"; then
|
||||
echo "$nic did not have any link when bringing up network"
|
||||
echo "$nic did not have any link when bringing up network" >> /etc/motd
|
||||
NICSTOWAIT=`echo $NICSTOWAIT|sed -e s/$nic//`
|
||||
fi
|
||||
@ -119,5 +121,6 @@ until [ $extrat == 80 -o -z "$NICSTOWAIT" ]; do
|
||||
done
|
||||
done
|
||||
if [ ! -z "$NICSTOWAIT" ]; then
|
||||
echo "Warning: the following network devices appeared to be connected to networks, but received no DHCP response: $NICSTOWAIT" >> /etc/motd
|
||||
echo "Warning: the following network devices appeared to be connected to networks, but received no DHCP response: $NICSTOWAIT"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user