1 |
On Wed, 31 May 2006 00:27:59 +0200, Norbert Kamenicky wrote: |
2 |
|
3 |
> Ok, it will probably work (not tested yet), but ... |
4 |
> it's not a big difference if it is in local.start, |
5 |
> postup() function or some another script.) |
6 |
|
7 |
There is one big difference. Running it from postup() means it is started |
8 |
immediately after the interface is brought up. Put it in local.start and |
9 |
it will try to run even if the interface is down or the cable unplugged. |
10 |
|
11 |
> I feel that's not the right way how it should be done. |
12 |
|
13 |
Why not? Those scripts are there for exactly this sort of thing, running |
14 |
commands dependent on the change of status of a network interface. |
15 |
|
16 |
The alternative would be to write your own rc-script with a depend on |
17 |
net.eth0. Unless you are already fluent in writing init scripts for |
18 |
runscript, this would be a lot more work. |
19 |
|
20 |
|
21 |
-- |
22 |
Neil Bothwick |
23 |
|
24 |
Oxymoron: Clearly Misunderstood. |