From owner-freebsd-questions@FreeBSD.ORG Wed Jun 2 06:22:02 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 D040116A4CE for ; Wed, 2 Jun 2004 06:22:02 -0700 (PDT) Received: from cwe.compwest.com.au (computerwest.com.au [202.72.158.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE44543D4C for ; Wed, 2 Jun 2004 06:21:58 -0700 (PDT) (envelope-from paul@bdug.org.au) Received: from mail.bdug.org.au (ant.parkview.compwest.com.au [202.72.170.31]) by cwe.compwest.com.au (8.12.6/8.12.6) with ESMTP id i52DLqkf016236 for ; Wed, 2 Jun 2004 21:21:53 +0800 (WST) (envelope-from paul@bdug.org.au) Received: from wks (wks.bdug.org.au [192.168.0.2]) by mail.bdug.org.au (Postfix) with SMTP id 8D94B5BAA; Wed, 2 Jun 2004 21:21:52 +0800 (WST) From: "Paul Hamilton" To: "Kent Stewart" , Date: Wed, 2 Jun 2004 21:23:42 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <200406011009.29082.kstewart@owt.com> Importance: Normal 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: Wed, 02 Jun 2004 13:22:02 -0000 Hi Kent, Thanks for that tip off. After lots of digging around in google, I found this site: http://simon.nitro.dk/freebsd-tips.php that mentions how to use script: newvers.sh grep -E 'BRANCH|REVISION' /usr/src/sys/conf/newvers.sh Cool. Cheers, paul -----Original Message----- From: Kent Stewart [mailto:kstewart@owt.com] Sent: Wednesday, 2 June 2004 1:09 AM To: freebsd-questions@freebsd.org Cc: Paul Hamilton Subject: Re: script entry to finding the version after a cvsup 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