From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29092 invoked by uid 1002); 28 Jul 2003 23:55:26 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 28876 invoked from network); 28 Jul 2003 23:55:25 -0000 From: Chris Smith Reply-To: chris.rs@xtra.co.nz To: gentoo-dev@gentoo.org Date: Tue, 29 Jul 2003 11:55:21 +1200 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307291155.21300.chris.rs@xtra.co.nz> Subject: [gentoo-dev] PPTP Tunnel init.d script X-Archives-Salt: 11bbb440-e01f-4cbf-98ca-c55cd80f0773 X-Archives-Hash: 5810a5866b34f80eb5f83965b66f6951 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