public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] PPTP Tunnel init.d script
  @ 2003-07-28 23:57 99% ` Ricardo Loureiro
  0 siblings, 0 replies; 1+ results
From: Ricardo Loureiro @ 2003-07-28 23:57 UTC (permalink / raw
  To: chris.rs; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]

Hi chris,

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:

Take a look at the Gentoo Linux rc-script Guide, specially this section:
http://www.gentoo.org/doc/en/rc-scripts.xml#doc_chap5

Hope it helps.

Ricardo Loureiro

On Tue, 29 Jul 2003 11:55:21 +1200
Chris Smith <chris.rs@xtra.co.nz> wrote:

> Hi guys,
> 
> I've recently set up my Gentoo server to access my nokia M1122 modem via pptp. 
> Everything works sweet as, and it gives me the control over my internet 
> connection that I need.
> 
> The problem is, is when my server powers off, and powers on again, the tunnel 
> will be lost and I'll have to start it manually. I thought the 
> /etc/init.d/net.ppp0 script may have some kind of support for it, but it 
> doesn't. The command that needs to be run is "pptp-command start M1122", but 
> I would like it to be part of the Gentoo init system.
> 
> So I set out with my _very_ basic bash skills and tried to impliment my own. 
> And I failed (I really need to learn bash better :). The Gotcha's are that it 
> has to load after my net.eth0 script, but before any of my network services 
> start up (can't bind to a non-existant device).
> 
> I found a nice walkthrough for a debian PC, but time is limited at the moment 
> (assignments are piling up... :( Uni.) so I was just wondering if anybody had 
> hacked up a solution for this. 
> 
> If not, I'll attempt it again in a week or two, and post the result here so 
> you guys can get kicks from my bash scripting :D
> 
> Cheers,
> Chris.
> 
> 
> --
> gentoo-dev@gentoo.org mailing list
> 


Ricardo Loureiro

1024D/6B7C0EC0: BA28 B022 E0A9 03C5 9E5F 7BD7 25E3 CF69 6B7C 0EC0

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-07-28 23:55     [gentoo-dev] PPTP Tunnel init.d script Chris Smith
2003-07-28 23:57 99% ` Ricardo Loureiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox