mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Merge pull request #3174 from immarvin/onpostrhels7
fix typo in if-clause in post.rhels7
This commit is contained in:
commit
8b24694e87
@ -9,11 +9,11 @@
|
||||
for i in $(find /etc/sysconfig/network-scripts/ifcfg-*|egrep -v ifcfg-lo )
|
||||
do
|
||||
nicname=$(echo $i|awk -F 'ifcfg-' '{print $2}')
|
||||
if ethtool $nicname|grep -E -i "Link detected.*yes" >/dev/null 2>&1
|
||||
if ethtool $nicname|grep -E -i "Link detected.*yes" >/dev/null 2>&1; then
|
||||
if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then
|
||||
msgutil_r "$MASTER_IP" "info" "set NIC $nicname to be activated on system boot" "/var/log/xcat/xcat.log"
|
||||
fi
|
||||
then sed -i 's/ONBOOT=no/ONBOOT=yes/' $i
|
||||
sed -i 's/ONBOOT=no/ONBOOT=yes/' $i
|
||||
fi
|
||||
|
||||
#remove the entry 'HWADDR' from ifcfg-ethx, this is used to skip the
|
||||
|
Loading…
x
Reference in New Issue
Block a user