On Thu, Sep 1, 2011 at 2:59 PM, xinglp <xin...@gmail.com> wrote:
> 2011/9/1 Bruce Dubbs <bruce.du...@gmail.com>:
>> xinglp wrote:
>>> Misstake
>>>
>>> cp -av /etc/sysconfig/{ifconfig.eth0.ipv4,ifconfig.test}
>>> edit /etc/sysconfig/ifconfig.test set ONBOOT=no to it.
>>> then reboot the lfs system, you will see a warning.
>>
>> What's the warning?
> RTNETLINK answers: Cannot assign requested address                     [ FAIL 
> ]
> Because the ifconfig.test is not started by setting "ONBOOT=no" to it,
> but in "shutdown/reboot procces", the bootscript still try to stop
> ifconfig.test
>>

[I dont like this suggestion] We could use /run to keep track of what
interfaces are up/down, but that would add more logic then I think our
scripts should have...
[nor this one] An alternative is to add more code to ipv4-static to
detect if that IP Address is on the interface before removing it...

otherwise two choices

as xinglp says,  if we started it up on startup, we will try to stop
it on shutdown.  Otherwise we'll leave things be.
or what we have now,  stop all network devices, regardless if they've
been brought up or not.


-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to