Date: Thu, 7 Jun 2012 19:47:28 -0700 From: Michael Sierchio <kudzu@tenebras.com> To: Polytropon <freebsd@edvax.de> Cc: racerx@makeworld.com, freebsd-questions@freebsd.org, Robert Bonomi <bonomi@mail.r-bonomi.com> Subject: Re: find date of last boot Message-ID: <CAHu1Y71VLk1osRE3bxnnqaVrKLSWgL29Wehfu0yAQDvU%2Btb=Jw@mail.gmail.com> In-Reply-To: <20120608043422.9a5d37a7.freebsd@edvax.de> References: <4FD15461.6090109@makeworld.com> <201206080202.q5822vVd060619@mail.r-bonomi.com> <20120608043422.9a5d37a7.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 7, 2012 at 7:34 PM, Polytropon <freebsd@edvax.de> wrote: > Maybe introducing something along the /etc/rc execution? > An /etc/rc.local entry like > > =A0 =A0 =A0 =A0/bin/date "+%Y-%m-%d %H:%M:%S" > /var/log/thisboot.log > > and then just look at the file. Requires at least one reboot > to take effect. :-) > You could just put the following in /etc/rc.local date and it would be retained in /var/run/dmesg.boot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y71VLk1osRE3bxnnqaVrKLSWgL29Wehfu0yAQDvU%2Btb=Jw>