From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FlDWv-0003R0-VE for garchives@archives.gentoo.org; Tue, 30 May 2006 23:21:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4UNKHjp002489; Tue, 30 May 2006 23:20:17 GMT Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4UNFb4N011779 for ; Tue, 30 May 2006 23:15:37 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1FlDR3-0002ae-BB for gentoo-user@lists.gentoo.org; Tue, 30 May 2006 23:15:37 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id 3BD011421082 for ; Wed, 31 May 2006 00:15:36 +0100 (BST) Date: Wed, 31 May 2006 00:15:32 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Howto setup tunnel in gentoo scripts Message-ID: <20060531001532.7826e17c@hactar.digimed.co.uk> In-Reply-To: <447CC6EF.4070809@xmedia.sk> References: <447CAB0E.9030405@xmedia.sk> <20060530215856.57809678@hactar.digimed.co.uk> <447CC6EF.4070809@xmedia.sk> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 2.3.0-rc4 (GTK+ 2.8.18; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_IJ4Q.RE/35oFv5msP3snX/6"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Originating-Rutherford-IP: [82.69.83.178] X-Archives-Salt: d48a81de-d0e4-4068-8a30-1b8bcd5ea0da X-Archives-Hash: ae5bc9249fd084e43126bedb1608f597 --Sig_IJ4Q.RE/35oFv5msP3snX/6 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 31 May 2006 00:27:59 +0200, Norbert Kamenicky wrote: > Ok, it will probably work (not tested yet), but ... > it's not a big difference if it is in local.start, > postup() function or some another script.) There is one big difference. Running it from postup() means it is started immediately after the interface is brought up. Put it in local.start and it will try to run even if the interface is down or the cable unplugged. > I feel that's not the right way how it should be done. Why not? Those scripts are there for exactly this sort of thing, running commands dependent on the change of status of a network interface. The alternative would be to write your own rc-script with a depend on net.eth0. Unless you are already fluent in writing init scripts for runscript, this would be a lot more work. --=20 Neil Bothwick Oxymoron: Clearly Misunderstood. --Sig_IJ4Q.RE/35oFv5msP3snX/6 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEfNIYum4al0N1GQMRAnnTAKCvF2ki+gf0CrM4P4ZE9mQyGIEjwwCfXR9s Kcb8IIS2/ZzGLp+mED6n3NI= =IXNY -----END PGP SIGNATURE----- --Sig_IJ4Q.RE/35oFv5msP3snX/6-- -- gentoo-user@gentoo.org mailing list