From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 10:09:37 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 517CB16A4CE for ; Tue, 1 Jun 2004 10:09:37 -0700 (PDT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2EE443D45 for ; Tue, 1 Jun 2004 10:09:36 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i51H8nbI007766; Tue, 1 Jun 2004 10:08:50 -0700 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Tue, 1 Jun 2004 10:09:29 -0700 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406011009.29082.kstewart@owt.com> cc: Paul Hamilton Subject: Re: script entry to finding the version after a cvsup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 17:09:37 -0000 On Tuesday 01 June 2004 06:55 am, Paul Hamilton wrote: > Hi, > > I have written a basic script to cvsup, buildworld and install the > new kernel-world etc. I have introduced some basic logging, so I can > track the time taken. Now I would like to track the version it was > before the upgrade (ie. uname -r ), and what it is after the upgrade. > Now, I can't use uname -r, because the server has to be restarted so > it can pick up the new kernel etc. > > So my question is, where can I find a entry in the downloaded > kernel/world source files that says that it is FreeBSD 4.9 p9 etc. I > can't use stable-supfile, because it only records the 'branch' that > is being upgraded, not the full version. > > Any clues? Look at /usr/src/sys/conf/newvers.sh Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html