1 |
On Sun, 9 Mar 2003, Joseph Carter wrote: |
2 |
> On Sun, Mar 09, 2003 at 11:02:07AM +0100, Frederick Reeve wrote: |
3 |
> I'd suggest setting a few environment vars and throwing run-parts at a |
4 |
> directory after the interface is brought up. These can, eg, check to see |
5 |
> if apache has been started yet and restart it if necessary. They could |
6 |
> also, for wireless links, start aphopper (probably only appropriate when |
7 |
> that program matures a little more), or other things like that. Really |
8 |
> there are lots of possibilities here. |
9 |
|
10 |
I guess Azarah could add support for a /etc/net.d/ directory with scripts |
11 |
that are called with the arguments <interface> <state>. Or something along |
12 |
those lines. I know I would like something that reconfigures my wwwoffle |
13 |
for the current network automatically. |
14 |
|
15 |
> For those interfaces which support it (e100 does at least), you could use |
16 |
> ifplugd (not yet in portage because I've gotten too busy of late to finish |
17 |
> the ebuild and submit it) and it would then automatically recheck for a |
18 |
> DHCP server and restart necessary services upon plugging in the network |
19 |
> cable. |
20 |
|
21 |
Well, I've been playing with mii-tool, and I made a script that did this, |
22 |
but I had some problems with daemonization, and in the end I just wrote |
23 |
the ebuild for ifplugd. I just committed it, so give it a whirl. |
24 |
(it's in ~x86) |
25 |
|
26 |
It's really easy, just start it with the init script and it will bring up |
27 |
the interface if possible. |
28 |
|
29 |
Cheers, |
30 |
|
31 |
Wout. |
32 |
|
33 |
-- |
34 |
gentoo-dev@g.o mailing list |