defect 4539: for rh7, remove the HWADDR entry from ifcfg-ethx files to skip the deadlock of cfg in ifcfg-ethx and real system

This commit is contained in:
daniceexi 2015-03-11 06:04:50 -04:00
parent 3a65b11326
commit 793a6c1709

View File

@ -6,4 +6,8 @@ do
if ethtool $nicname|grep -E -i "Link detected.*yes" >/dev/null 2>&1
then sed -i 's/ONBOOT=no/ONBOOT=yes/' $i
fi
#remove the entry 'HWADDR' from ifcfg-ethx, this is used to skip the
#nic name change during the install and first_reboot
sed -i '/HWADDR/d' $i
done