public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Howto  setup tunnel in gentoo scripts
Date: Wed, 31 May 2006 00:15:32 +0100	[thread overview]
Message-ID: <20060531001532.7826e17c@hactar.digimed.co.uk> (raw)
In-Reply-To: <447CC6EF.4070809@xmedia.sk>

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

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.


-- 
Neil Bothwick

Oxymoron: Clearly Misunderstood.

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

  reply	other threads:[~2006-05-30 23:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 20:29 [gentoo-user] Howto setup tunnel in gentoo scripts Norbert Kamenicky
2006-05-30 20:58 ` Neil Bothwick
2006-05-30 22:27   ` Norbert Kamenicky
2006-05-30 23:15     ` Neil Bothwick [this message]
2006-05-31 22:40       ` [gentoo-user] Re: [OT] " Norbert Kamenicky
2006-05-31 23:00         ` Neil Bothwick
2006-06-01 17:17           ` Norbert Kamenicky
2006-06-01 17:55             ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060531001532.7826e17c@hactar.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox