Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster (8)

From: Dmitry Morozovsky <marck_at_rinet.ru>
Date: Tue, 17 Jul 2007 14:34:56 +0400 (MSD)
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_at_rinet.ru ***
------------------------------------------------------------------------
Received on Tue Jul 17 2007 - 08:34:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC