From: | "Daniel Black (dragonheart)" <dragonheart@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/tinc/files: tincd tinc.networks |
Date: | Tue, 01 Apr 2008 14:08:49 |
Message-Id: | E1JghAL-0000BR-Rk@stork.gentoo.org |
1 | dragonheart 08/04/01 14:08:45 |
2 | |
3 | Modified: tincd |
4 | Added: tinc.networks |
5 | Log: |
6 | fix init script and add an example as per bug #211807 thanks to Sebastian Droppelmann. added /etc/tinc directory as per bug #207113 thanks to Jens. version bump as per bug #204016 |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.5 net-misc/tinc/files/tincd |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tinc/files/tincd?rev=1.5&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tinc/files/tincd?rev=1.5&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tinc/files/tincd?r1=1.4&r2=1.5 |
15 | |
16 | Index: tincd |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v |
19 | retrieving revision 1.4 |
20 | retrieving revision 1.5 |
21 | diff -u -r1.4 -r1.5 |
22 | --- tincd 19 Apr 2007 08:45:08 -0000 1.4 |
23 | +++ tincd 1 Apr 2008 14:08:45 -0000 1.5 |
24 | @@ -1,7 +1,7 @@ |
25 | #!/sbin/runscript |
26 | # Copyright 1999-2004 Gentoo Foundation |
27 | # Distributed under the terms of the GNU General Public License v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v 1.4 2007/04/19 08:45:08 dragonheart Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v 1.5 2008/04/01 14:08:45 dragonheart Exp $ |
30 | |
31 | opts="reload" |
32 | |
33 | @@ -38,7 +38,7 @@ |
34 | stop() { |
35 | ebegin "Stopping tinc VPN networks" |
36 | eend 0 |
37 | - awk '^ *NETWORK:/{print $2}' /etc/conf.d/tinc.networks | while read TINCNET |
38 | + awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
39 | do |
40 | if [ -f /var/run/tinc."$TINCNET".pid ] |
41 | then |
42 | @@ -52,7 +52,7 @@ |
43 | reload() { |
44 | ebegin "Reloading configuration for tinc VPN networks" |
45 | eend 0 |
46 | - awk '^ *NETWORK:/{print $2}' /etc/conf.d/tinc.networks | while read TINCNET |
47 | + awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
48 | do |
49 | if [ -f /var/run/tinc."$TINCNET".pid ] |
50 | then |
51 | |
52 | |
53 | |
54 | 1.1 net-misc/tinc/files/tinc.networks |
55 | |
56 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tinc/files/tinc.networks?rev=1.1&view=markup |
57 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tinc/files/tinc.networks?rev=1.1&content-type=text/plain |
58 | |
59 | Index: tinc.networks |
60 | =================================================================== |
61 | # file: /etc/conf.d/tinc.networks for /etc/init.d/tincd |
62 | |
63 | # In this file you define the tinc networks you want to connect to |
64 | |
65 | # USAGE: |
66 | # you add a network to the init script by defining: |
67 | # NETWORK: your_network_name |
68 | # |
69 | # if you want to connect to multiple VPN's just set them behind each other. e.g. |
70 | # NETWORK: foo |
71 | # NETWORK: bar |
72 | # |
73 | # this would join the network foo and the network bar. |
74 | |
75 | |
76 | |
77 | -- |
78 | gentoo-commits@l.g.o mailing list |