Gentoo Archives: gentoo-dev

From: Ricardo Loureiro <rjlouro@×××××××.org>
To: chris.rs@×××××××.nz
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] PPTP Tunnel init.d script
Date: Tue, 29 Jul 2003 00:07:35
Message-Id: 20030729005733.6eab284b.rjlouro@rjlouro.org
In Reply to: [gentoo-dev] PPTP Tunnel init.d script by Chris Smith
1 Hi chris,
2
3 If I understood your problem correctly, you need to make sure that your script runs after eth0 goes up and before everything else. If that's the case, the solution is simple:
4
5 Take a look at the Gentoo Linux rc-script Guide, specially this section:
6 http://www.gentoo.org/doc/en/rc-scripts.xml#doc_chap5
7
8 Hope it helps.
9
10 Ricardo Loureiro
11
12 On Tue, 29 Jul 2003 11:55:21 +1200
13 Chris Smith <chris.rs@×××××××.nz> wrote:
14
15 > Hi guys,
16 >
17 > I've recently set up my Gentoo server to access my nokia M1122 modem via pptp.
18 > Everything works sweet as, and it gives me the control over my internet
19 > connection that I need.
20 >
21 > The problem is, is when my server powers off, and powers on again, the tunnel
22 > will be lost and I'll have to start it manually. I thought the
23 > /etc/init.d/net.ppp0 script may have some kind of support for it, but it
24 > doesn't. The command that needs to be run is "pptp-command start M1122", but
25 > I would like it to be part of the Gentoo init system.
26 >
27 > So I set out with my _very_ basic bash skills and tried to impliment my own.
28 > And I failed (I really need to learn bash better :). The Gotcha's are that it
29 > has to load after my net.eth0 script, but before any of my network services
30 > start up (can't bind to a non-existant device).
31 >
32 > I found a nice walkthrough for a debian PC, but time is limited at the moment
33 > (assignments are piling up... :( Uni.) so I was just wondering if anybody had
34 > hacked up a solution for this.
35 >
36 > If not, I'll attempt it again in a week or two, and post the result here so
37 > you guys can get kicks from my bash scripting :D
38 >
39 > Cheers,
40 > Chris.
41 >
42 >
43 > --
44 > gentoo-dev@g.o mailing list
45 >
46
47
48 Ricardo Loureiro
49
50 1024D/6B7C0EC0: BA28 B022 E0A9 03C5 9E5F 7BD7 25E3 CF69 6B7C 0EC0

Replies

Subject Author
Re: [gentoo-dev] PPTP Tunnel init.d script Mike Frysinger <vapier@g.o>