From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 06:53:26 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 BFD4E16A4CE for ; Tue, 1 Jun 2004 06:53:26 -0700 (PDT) Received: from cwe.compwest.com.au (computerwest.com.au [202.72.158.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE24243D55 for ; Tue, 1 Jun 2004 06:53:25 -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 i51DrOkf013282 for ; Tue, 1 Jun 2004 21:53:25 +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 7D2575BA1 for ; Tue, 1 Jun 2004 21:53:25 +0800 (WST) From: "Paul Hamilton" To: "Freebsd-Questions" Date: Tue, 1 Jun 2004 21:55:17 +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 Importance: Normal Subject: 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 13:53:26 -0000 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? Cheers, Paul Hamilton