Re: [lfs-dev] ifdown has an error

2012-03-31 Thread Qrux
On Mar 30, 2012, at 8:28 PM, Bruce Dubbs wrote: >> In fact, ifdown should *only* set DOWN when there are no IP configs >> still attached to the logical interface. If there *is* an IP config >> still attached to the logical interface, then ifdown should just >> report a warning that it cannot set

Re: [lfs-dev] ifdown has an error

2012-03-31 Thread Qrux
On Mar 30, 2012, at 8:28 PM, Bruce Dubbs wrote: > Qrux wrote: > >> Hopefully no one is relying on that functionality. And, those who are >> should be doing it through their own customs scripts. IMO, that's bad >> behavior. > > The nature of LFS is that users can do their own thing. I don't wan

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread Bruce Dubbs
Qrux wrote: > On Mar 30, 2012, at 9:42 AM, xinglp wrote: > > is not really correct, but for a different reason. We should not set > DOWN for an interface with an IP address still configured. Yes, that was what xinglp was saying. > Hopefully no one is relying on that functionality. And, those

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread Qrux
On Mar 30, 2012, at 9:42 AM, xinglp wrote: > 在 2012年3月31日 上午12:05,Bruce Dubbs 写道: >> xinglp wrote: >>> http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html >>> >>> if [ "$(ip addr show ${IFACE} | grep 'inet ')" != "" ]; then >>> log_info_msg "Bringing down th

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread Qrux
On Mar 30, 2012, at 9:05 AM, Bruce Dubbs wrote: > xinglp wrote: >> http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html >> >> if [ "$(ip addr show ${IFACE} | grep 'inet ')" != "" ]; then >> log_info_msg "Bringing down the ${IFACE} interface..." >> ip lin

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread Bruce Dubbs
xinglp wrote: > 在 2012年3月31日 上午12:05,Bruce Dubbs 写道: >> xinglp wrote: >>> http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html >>> >>> if [ "$(ip addr show ${IFACE} | grep 'inet ')" != "" ]; then >>> log_info_msg "Bringing down the ${IFACE} interface..." >>>

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread xinglp
> I'm missing something here.  Why would we need to set an interface down > if the inet line is null? try to search "Rewrite bootscripts and Chaper 7" in list of lfs-dev@linuxfromscratch.org -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscri

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread xinglp
在 2012年3月31日 上午12:05,Bruce Dubbs 写道: > xinglp wrote: >> http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html >> >>       if [ "$(ip addr show ${IFACE} | grep 'inet ')" != ""  ]; then >>          log_info_msg "Bringing down the ${IFACE} interface..." >>          ip link set ${IF

Re: [lfs-dev] ifdown has an error

2012-03-30 Thread Bruce Dubbs
xinglp wrote: > http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html > > if [ "$(ip addr show ${IFACE} | grep 'inet ')" != "" ]; then > log_info_msg "Bringing down the ${IFACE} interface..." > ip link set ${IFACE} down > evaluate_retval >