Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Automatic host switching
Date: Sun, 21 Sep 2008 18:53:26
Message-Id: 20080921195313.00d688d0@digimed.co.uk
In Reply to: Re: [gentoo-user] Automatic host switching by Robert Bridge
1 On Sun, 21 Sep 2008 18:34:15 +0100, Robert Bridge wrote:
2
3 > > Like having a /etc/hosts.home and a /etc/hosts.world and a script
4 > > that sysmlinks them to /etc/hosts depending on the fact that i can
5 > > ping or not 192.168.1.5?
6 >
7 > Basically, I would probably look at methods of hooking it onto the IP
8 > assigned to the device (ifplugd should be able to do this), but that is
9 > the basic idea.
10
11 You could do it in the postup function of /etc/conf.d/net.
12
13
14 --
15 Neil Bothwick
16
17 Your mama's like a railroad track: She gets laid all over the country.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Automatic host switching [SOLVED] Momesso Andrea <momesso.andrea@×××××.com>