1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On Thursday 08 April 2004 13:16, francis wrote: |
5 |
> I have extended the net.eth script so that you can have pre/post scripts |
6 |
> on start/stop of a nic, as i couldn't see a sensible way to create a |
7 |
> bonded pair or a bridge i thought i would share. |
8 |
> |
9 |
> i extended the config in /etc/conf.d/net to include preup / postup / |
10 |
> predown / postdown |
11 |
> |
12 |
> for example! |
13 |
> |
14 |
> iface_br0="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0" |
15 |
> |
16 |
> preup_br0="/etc/network/preup_br0" |
17 |
> postup_br0="/etc/network/postup_br0" |
18 |
> postdown_br0="/etc/network/postdown_br0" |
19 |
> |
20 |
> those files being scripts, i set them so they are 600 just, they just |
21 |
> are simple lists of calls to brctl etc, |
22 |
> |
23 |
> i called them like so /bin/bash ${preup_br0} so they do not need to be |
24 |
> +x |
25 |
> |
26 |
> there might be a better way to handle running the script?! |
27 |
|
28 |
Would a new init file for bridging work? Just have it "need net" |
29 |
|
30 |
- --Iggy |
31 |
|
32 |
> |
33 |
> |
34 |
> hope this is useful to someone! |
35 |
> |
36 |
> Cheers |
37 |
> Francis |
38 |
|
39 |
- -- |
40 |
http://www.brianandsara.net |
41 |
For Sale : http://www.brianandsara.net/temp/forsale.php |
42 |
-----BEGIN PGP SIGNATURE----- |
43 |
Version: GnuPG v1.2.4 (GNU/Linux) |
44 |
|
45 |
iD8DBQFAderu+cPN+Z7qK9cRAg9YAKC/eyYLsSKulRsAcyFDLbq/sGz1lACeORPC |
46 |
bfKO2Sxqk8OhiXHXw6Un14M= |
47 |
=DHTT |
48 |
-----END PGP SIGNATURE----- |
49 |
|
50 |
-- |
51 |
gentoo-dev@g.o mailing list |