From owner-cvs-usrsbin Mon Nov 20 22:23:55 1995 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA17950 for cvs-usrsbin-outgoing; Mon, 20 Nov 1995 22:23:55 -0800 Received: from jhome.DIALix.COM (root@jhome.DIALix.COM [192.203.228.69]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id WAA17910 ; Mon, 20 Nov 1995 22:22:59 -0800 Received: (from peter@localhost) by jhome.DIALix.COM (8.6.12/8.6.9) id OAA21376; Tue, 21 Nov 1995 14:22:01 +0800 Date: Tue, 21 Nov 1995 14:22:00 +0800 (WST) From: Peter Wemm To: "Rodney W. Grimes" cc: davidg@Root.COM, guido@gvr.win.tue.nl, CVS-commiters@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.sbin/syslogd syslogd.c In-Reply-To: <199511210327.TAA23634@GndRsh.aac.dev.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-usrsbin@FreeBSD.ORG Precedence: bulk On Mon, 20 Nov 1995, Rodney W. Grimes wrote: > > > Or perhaps enhance the rename to use /kernel.N, N being a number, simply > > > move it to one higher than the highest existing file. > > > > Hmm. Another thought... > > if [ `sysctl kern.bootfile` == /kernel ]; then > > mv /kernel /kernel.old > > sysctl -w kern.bootfile=/kernel.old > > fi > > install -c .. kernel /kernel > > That was my previosly posted patch, it has the problem of if you > make install > twice /kernel.old will no longer be correct, thus my /kernel.N proposal > to fix that. Hmm. not quite sure about that.. The one I posted above only saves /kernel to /kernel.old once, and overwrites /kernel as many times as you do a make install afterwards. Your /kernel.old (the most recent successful boot) is the one that's kept. Cheers, -Peter