Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2007 14:34:56 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        freebsd-current@freebsd.org, marck@rinet.ru, dougb@freebsd.org
Subject:   Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster (8)
Message-ID:  <20070717143422.F82929@woozle.rinet.ru>
In-Reply-To: <200707171031.l6HAVmDZ088205@lurza.secnetix.de>
References:  <200707171031.l6HAVmDZ088205@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070717143422.F82929>