Red Hat Bugzilla – Bug 10832
recent changes to init.d/network break network startup
Last modified: 2014-03-16 22:13:24 EDT
Since upgrading to initscripts-5.07-1, my eth0 card was not being turned on
during bootup or during a manual "/etc/rc.d/init.d/network restart".
I traced the problem down to the following part of init.d/network:
for i in $interfaces; do
if egrep -L "ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i | grep -v "^#"
>/dev/null ; then
# Probe module to preserve interface ordering
/sbin/ifconfig $i >/dev/null 2>&1
action "Bringing up interface $i" ./ifup $i boot
the "egrep -L" was doing the opposite of what was intended, and should be
changed to "egrep -l".
Actually, just changing it to 'egrep -L "^<pattern>"
should do what's desired.
Fixed in 5.08-1 and later; thanks for the bug report.