Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 1995 14:22:00 +0800 (WST)
From:      Peter Wemm <peter@jhome.DIALix.COM>
To:        "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
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
Message-ID:  <Pine.BSF.3.91.951121141159.17368G-100000@jhome.DIALix.COM>
In-Reply-To: <199511210327.TAA23634@GndRsh.aac.dev.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951121141159.17368G-100000>