2011/8/31 Bruce Dubbs <bruce.du...@gmail.com>: > xinglp wrote: >> This is a patch fix some issues I met. > > I'm looking at the changes, but don't see what problems they are trying > to solve. > > In the rc script, I think the change you made will set IN_BOOT > improperly if the user executes init to change run levels from, for > example, 5 to 3.
Setting "ONBOOT=no" in /etc/sysconfig/ifconfig.xxx has NO effects. > > I also think the changes to ifdown don't do the right thing but I'm not > 100% sure. 1. "ifdown" has not deal with "IN_BOOT" and "ONBOOT" 2. If I set /etc/sysconfig/ifconfig.eth0.{ip1,ip2,ip3}, these 3 addrs to eth0, when I do "ifdown eth0.ip1", the ifdown will do "ip link set ${IFACE} down", then the eth0 down. So, I use this to see if any addrs left in the ${IFACE}. If it has, do not set it down. if ! ip addr show ${IFACE}|grep -q inet; then boot_mesg "Bringing down the ${IFACE} interface..." ip link set ${IFACE} down evaluate_retval fi Sorry for my poor English :-( > > -- Bruce > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-dev > FAQ: http://www.linuxfromscratch.org/faq/ > Unsubscribe: See the above information page > -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page