Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 15:01:34 -0800
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Date of a FreeBSD installation
Message-ID:  <87hbdc4ddd.fsf@oak.localnet>
In-Reply-To: <20110113233016.5de7b7b8.freebsd@edvax.de> (Polytropon's message	of "Thu, 13 Jan 2011 23:30:16 %2B0100")
References:  <4D2F606D.6090407@gmail.com>	<BF2F84C5-AB13-4FE1-AB43-AD965E21980E@mac.com> <20110113204525.GB3646@libertas.local.camdensoftware.com> <579FC70C-5B5B-43B4-9E71-D765887FAF6F@mac.com> <20110113210319.GD3646@libertas.local.camdensoftware.com> <1294955182.10908.14.camel@localhost.localdomain>	<2062F50F-5D14-496C-A97A-FC4CDB3FDD3F@mac.com> <20110113233016.5de7b7b8.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon <freebsd@edvax.de> writes:

> On Thu, 13 Jan 2011 13:50:27 -0800, Chuck Swiger <cswiger@mac.com> wrote:
>> On Jan 13, 2011, at 1:46 PM, Devin Teske wrote:
>> > This is nearly always accurate on any FreeBSD system (when wanting to
>> > query the date the machine was built):
>> > 
>> > 	ls -l /etc/defaults/rc.conf
>> 
>> I gather that you don't ever run mergemaster, which would update this file?
>> My machine installed in 2001 has a Dec 2010 date for that file:
>> 
>> -r--r--r--  1 root  wheel  36037 Dec  1 14:13 /etc/defaults/rc.conf
>
> Exactly that was my thought. Maybe a file that is NOT subject
> to one of the system upgrade procedures would be better? Maybe
> something in /boot?
>
> % ls -l /etc/defaults/rc.conf
> -r--r--r--  1 root  wheel  34300 Aug 24  2008 /etc/defaults/rc.conf
> % ls -l /boot/defaults/loader.conf
> -r--r--r--  1 root  wheel  19426 Aug 24  2008 /boot/defaults/loader.conf
>
> No, forget about that, also nonsense, looks to new...

How about /var/empty:

% ls -ldo /var/empty/
dr-xr-xr-x  2 root  wheel  schg 512 Jul 18 19:16 /var/empty/

It can be changed, but doesn't look likely.

-- 
Carl Johnson		carlj@peak.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87hbdc4ddd.fsf>