[RFC] bootscripts change for link up/down
Kevin P. Fleming
kpfleming at linuxfromscratch.org
Mon Jul 12 14:42:27 PDT 2004
I'd like to suggest one more change for the bootscripts for 2.2.1... "ip
link set up" and "ip link set down" should not be in the ipv4-static
service, but rather they should be in ifup/ifdown.
In ifup, "ip link set up" would be run after all the services for that
interface have been run, so it won't be "turned on" until it's ready.
In ifdown, "ip link set down" would be run before the services for that
interface are run, so it's "turned off" before the services are asked to
shut down the interface.
This will allow usage of ifup/ifdown even for interface that are not
using ipv4-static at all (like bridged interfaces, or IPX only, or
whatever). Future service scripts should also leave the interface "link
state" alone, and let the ifup/ifdown scripts handle it.
More information about the lfs-dev