Re: Flexible Notebook-Config

From: Oliver Fromme <olli(at)lurza.secnetix.de>
Date: Mon, 25 Apr 2005 20:11:18 +0200 (CEST)

Rocco Rutte <pdmef(at)cs.tu-berlin.de> wrote:
> ich habe eine Frage zur Konfiguration von Notebooks.
>
> Via Google habe ich <http://www.fefe.de/divine/> gefunden und hätte für
> FreeBSD (5.4-STABLE) gern etwas vergleichbares.

Ich habe mir die Webseite nicht angeschaut, aber anhand
Deiner Beschreibung geht es wohl um eine netzabhängige
Konfiguration des Notebooks.

Bei mir habe ich es so gelöst, daß ich alle veränderlichen
Dateien (fstab, ntp.conf, rc.conf.local und ein paar ande-
re) in mehreren Version angelegt habe, jeweils mit einem
angehängten Suffix .home, .office, .offline usw.

Beim Booten guckt ein Skript in /etc/rc.early nach, in was
für einem Netz ich bin, und setzt dann Symlinks, z.B. von
fstab.office nach fstab. Das Skript hat einfach eine Liste
von Netzen, konfiguriert der Reihe nach den NIC auf jedes
Netz und guckt, ob dort das Gateway angepingt werden kann.
Einfach, aber funktionell. (BOOTP oder DHCP wäre natürlich
eleganter, aber das geht nicht überall.)

Bei Bedarf kann ich gelegentlich mal mein /etc/rc.early-
Skript hier posten (momentan ist das Notebook aus und off-
line).

Gruß
   Olli

PS: Ich verwende FreeBSD 4, aber es sollte prinzipiell
auch mit FreeBSD 5 gehen.

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"I learned Java 3 years before Python.  It was my language of
choice.  It took me two weekends with Python before I was more
productive with it than with Java." -- Anthony Roberts
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 25 Apr 2005 - 20:11:57 CEST

search this site