From owner-freebsd-current@FreeBSD.ORG Tue Jul 17 10:44:29 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 AB94E16A410; Tue, 17 Jul 2007 10:44:29 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1661D13C4B6; Tue, 17 Jul 2007 10:44:28 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (atmzeb@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l6HAiMBI089060; Tue, 17 Jul 2007 12:44:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l6HAiMs1089059; Tue, 17 Jul 2007 12:44:22 +0200 (CEST) (envelope-from olli) Date: Tue, 17 Jul 2007 12:44:22 +0200 (CEST) Message-Id: <200707171044.l6HAiMs1089059@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, marck@rinet.ru, dougb@FreeBSD.ORG In-Reply-To: <20070717143422.F82929@woozle.rinet.ru> X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 17 Jul 2007 12:44:27 +0200 (CEST) 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 Reply-To: freebsd-current@FreeBSD.ORG, marck@rinet.ru, dougb@FreeBSD.ORG 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:44:29 -0000 Dmitry Morozovsky wrote: > Oliver Fromme wrote: > 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 ? Because /etc/rc.early is _not_ the very first script being run. See: $ rcorder /etc/rc.d/* | sed -n '1,/early/p' /etc/rc.d/dumpon /etc/rc.d/initrandom /etc/rc.d/geli /etc/rc.d/gbde /etc/rc.d/encswap /etc/rc.d/ccd /etc/rc.d/swap1 /etc/rc.d/mdconfig /etc/rc.d/ramdisk /etc/rc.d/early.sh $ Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen