On Wed, 31 May 2006 00:27:59 +0200, Norbert Kamenicky wrote:

> Ok, it will probably work (not tested yet), but ...
> it's not a big difference if it is in local.start,
> postup() function or some another script.)

There is one big difference. Running it from postup() means it is started
immediately after the interface is brought up. Put it in local.start and
it will try to run even if the interface is down or the cable unplugged.

> I feel that's not the right way how it should be done.

Why not? Those scripts are there for exactly this sort of thing, running
commands dependent on the change of status of a network interface.

The alternative would be to write your own rc-script with a depend on
net.eth0. Unless you are already fluent in writing init scripts for
runscript, this would be a lot more work.


-- 
Neil Bothwick

Oxymoron: Clearly Misunderstood.

Attachment: signature.asc
Description: PGP signature

Reply via email to