From owner-freebsd-current@FreeBSD.ORG Tue Jul 17 10:34:57 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD95316A409; Tue, 17 Jul 2007 10:34:57 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 338A013C4AC; Tue, 17 Jul 2007 10:34:56 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l6HAYu7C006714; Tue, 17 Jul 2007 14:34:56 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Tue, 17 Jul 2007 14:34:56 +0400 (MSD) From: Dmitry Morozovsky To: freebsd-current@freebsd.org, marck@rinet.ru, dougb@freebsd.org In-Reply-To: <200707171031.l6HAVmDZ088205@lurza.secnetix.de> Message-ID: <20070717143422.F82929@woozle.rinet.ru> References: <200707171031.l6HAVmDZ088205@lurza.secnetix.de> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Tue, 17 Jul 2007 14:34:56 +0400 (MSD) Cc: Subject: Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster (8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2007 10:34:57 -0000 On Tue, 17 Jul 2007, Oliver Fromme wrote: OF> > My recommendation in that scenario would be to play with the value of OF> > early_late_divider until you got something that worked for you. That's OF> > why I made it a variable. :) OF> > OF> > If there is a particular combination of things that have to happen OF> > that early_late_divider won't work for, I'd be interested in hearing OF> > that so that we could look at possibly adjusting the code if it's OF> > possible. OF> OF> On my notebook I have a script /etc/rc.d/net-detect that OF> pings several IP addresses in order to find out in which OF> network environment the notebook is used (at the office, OF> at home with wlan, at home with 100base-t, or no network OF> at all). The script then adjusts several symlinks based OF> on the network environment, i.e. several files in /etc OF> are changed, including rc.conf, ntp.conf, resolv.conf, OF> fstab (!), hosts and others. OF> OF> That script runs as the very first rc script, even before OF> root is mounted r/w (it does fsck -p / + mount -u -o rw /, OF> then changes the symlinks, then mount -u -o ro /). OF> OF> Works perfectly fine for me. The only thing I need to be OF> careful about is to tell mergemaster not to remove that OF> script. Mergemaster's default, unfortunately, is to delete OF> all unknown scripts in /etc/rc.d. Of course I do have a OF> backup copy, so I can easily recover if needed. Hmm, if it is the very first rc.d script, why don't you name it /etc/rc.early ? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------