From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 25 14:26:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31C3B16A4DA for ; Fri, 25 Aug 2006 14:26:42 +0000 (UTC) (envelope-from yuanjue02@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id E74F143D6B for ; Fri, 25 Aug 2006 14:26:28 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so576336nzn for ; Fri, 25 Aug 2006 07:26:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=rDZm+rJwMPqVOeNj4j/qrtkL9tSo+8S1b/udHaehCGcFoJN1jZ1gR8yoMT/BTgJtWoXaOiIOIAIRUBTdBmdyf6ehIFc1S/FQIpKKA5oJd4bT2ovSgSP0coJHnDcxweNUArSTFh9/YtuVXmXSI+CMamDZSxmpVIK/WEf2y2wf228= Received: by 10.35.126.7 with SMTP id d7mr5215244pyn; Fri, 25 Aug 2006 07:26:27 -0700 (PDT) Received: from ?222.48.99.94? ( [124.172.191.97]) by mx.gmail.com with ESMTP id i72sm2475109pye.2006.08.25.07.26.25; Fri, 25 Aug 2006 07:26:27 -0700 (PDT) From: "Yuan, Jue" Organization: Institute of Computing Technology, CAS, China To: Roman Kurakin Date: Fri, 25 Aug 2006 22:28:45 +0800 User-Agent: KMail/1.9.3 References: <200608251958.09341.yuanjue02@gmail.com> <44EF0A13.80008@inse.ru> In-Reply-To: <44EF0A13.80008@inse.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608252228.45724.yuanjue02@gmail.com> X-Mailman-Approved-At: Fri, 25 Aug 2006 16:31:25 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: How to change kernel version tag? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 14:26:42 -0000 On Friday 25 August 2006 22:32, Roman Kurakin wrote: > Yuan, Jue wrote: > > Hi all. > > > > Could I change the kernel version tag manually? say, I have a kernel > > which is 7.0-CUREENT, but for some reasons I wanna it be something like > > 6.1-RELEASE, while the kernel itself does't change from 7.0-CURRENT to > > 6.1-RELEASE. All I want is the change of tag. For example, if this works, > > then when I type "uname -a" in console, I would get "6.1-RELEASE ..." > > instead of "7.0-CURRENT ...". > > You jast want to change the uname output, or some software checks kernel > version? > I think the uname output is enough. I have found __FreeBSD_version in /sys/sys/param.h, and was told the file /sys/conf/newvers.sh. So I guess the problem has already solved. :-) Anyway, thanks all the same. -- Best Regards Yuan, Jue @ http://www.yuanjue.net