Re: better /etc/init.d/network
md@linux.it (Marco d'Itri) writes:
> On May 18, Erik <journey@jps.net> 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
this:
GROUP="eth0 eth1 eth2"
OPTIONS="noauto"
On boot home would not be started, but when used manually eth0,
eth1 and eth2 would be affected.
May the Source be with you.
Goswin
Reply to: