Re: better /etc/init.d/network
firstname.lastname@example.org (Marco d'Itri) writes:
> On May 18, Erik <email@example.com> wrote:
> >Howabout instead of having eth0, eth1, etc. have like home, work, etc.
> >the files could then have an extra section, called DEVICE or something, that
> You could make a symlink.
Nope, that would start home and eth0 and then you have it setup
twice. Normally no harm, but if you have a special up or down script
associated with the device that can go wrong.
Also you don't want to automatically start "home" when you are at
"work". Another paramter, e.g.
OPTIONS=default|auto|noauto|user|.. (just like in the fstab)
would be needed. That way you could allow any user to ring the modem
but not to start/stop eth0.
For stuff like "home" and "work" another paramter grouping several
interface together would be usefull. /etc/network/home could look like
GROUP="eth0 eth1 eth2"
On boot home would not be started, but when used manually eth0,
eth1 and eth2 would be affected.
May the Source be with you.