You are not logged in.
After I manually ifconfig eth0 down, run /etc/rc.d/network restart can't make eth0 up,
After debug the script,I find the following line in ifup function has a problem:
[ "$(/sbin/ifconfig ${1} 2>/dev/null |\
/bin/grep -v 'inet6 addr: fe80:' |\
/bin/grep -e 'inet addr:' -e 'inet6 addr:')" ] && return 0
because the [ ... ] statement always eval true, so the function return,nothing is done.
I modify the statement as following:
[ "$(/sbin/ifconfig ${1} 2>/dev/null |\
/bin/grep -v 'inet6 addr: fe80:' |\
/bin/grep -e '^ *UP')" ] && return 0
is it a bug of the script, can anyone test it?
Offline
many people have the same problem.
Offline