public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] PPTP Tunnel init.d script
@ 2003-07-28 23:55 Chris Smith
  2003-07-28 23:57 ` Ricardo Loureiro
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Smith @ 2003-07-28 23:55 UTC (permalink / raw
  To: gentoo-dev

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] PPTP Tunnel init.d script
  2003-07-28 23:55 [gentoo-dev] PPTP Tunnel init.d script Chris Smith
@ 2003-07-28 23:57 ` Ricardo Loureiro
  2003-07-29  0:36   ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
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	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] PPTP Tunnel init.d script
  2003-07-28 23:57 ` Ricardo Loureiro
@ 2003-07-29  0:36   ` Mike Frysinger
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2003-07-29  0:36 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 28 July 2003 19:57, Ricardo Loureiro wrote:
> 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:

even easier, why not put it into /etc/conf.d/local.start ... of course this 
will only run when the server boots ...

- -mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iQIVAwUBPyXBr0FjO5/oN/WBAQKTqhAAvKwOxjFKm+n6EsasZljcNhMBborQeqzi
dfeULEZ3vjotr8VFLwAuhgJokfusCfKEAsJcaBSgc/Q32RyJAqHn+JyYDuiblrl8
vjMAmjg9hRgmGRn8XH6Bw5p7OlNxDe8o7GgcswuJIO1MkGYsdbcpBMcwjOd4Id+O
XiaGKQX0JZRzkypb/C0PHv9PVmJY/hP5ZETNV85Nw5aLeVAazzPDdiOPNUPJXx8+
tVtTDT6y+xGIQDUc4vehYoNWXdTIkdR9ozu7lJ1v9+QGm1CDLCFTOkGjK1Oua+hc
sI9QvNlP+R1povU7t/6lV2R47U28mGhyL8+QHAJkQQrMRpbmTMVA+Zr5WpRiRc3r
/XZJTG+fNtvH9skoffAd0chSnKxBHf7E2NZsbUl7nmsy1UmDUNzfkdQDCQ8hgl5T
81MrVzkCiOBTHF4pP8XF4Gtl6Gu3JpzagMkmP8lgxwYH6azjTTpEsDsjP7bewILw
XjZ0ZuWrttxN+i6SFhEJ99kYwbaRNMJ+Mfh72ir/vJiGg0193f1EU1Uaopk5hdOK
8zTLmLo2v/mWFYKYUvXv/3R/EdeHmeuJ93okjTxNIqfMTfjA8ekGWn9SfJfAKQcJ
vWbPRjQ9Bu7gmjIy9VW6ZCZRKXl57e3LvorLr39lsLUgE5rlHhYtYrCL0cyXXRPr
hIpGeisdYUM=
=H+i5
-----END PGP SIGNATURE-----

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-29  0:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-28 23:55 [gentoo-dev] PPTP Tunnel init.d script Chris Smith
2003-07-28 23:57 ` Ricardo Loureiro
2003-07-29  0:36   ` Mike Frysinger

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