Find out OS version and plattform?

Herbert J. Skuhra herbert at gojira.at
Sat Jun 13 13:54:32 UTC 2020


On Sat, 13 Jun 2020 10:20:09 +0200, Yuri Pankov wrote:
> 
> Steve O'Hara-Smith wrote:
> > On Sat, 13 Jun 2020 09:00:00 +0100
> > Matthew Seaman <matthew at FreeBSD.org> wrote:
> > 
> >> On 12/06/2020 10:03, Ede Wolf wrote:
> >>> linux has something like /etc/os-release, which is a textfile, is there
> >>> an equivalent [method] in FreeBSD?
> >> 
> >> Yes.  It's exactly the same.
> > 
> > 	Since when ? There isn't one on my 12.1p3 box.
> 
> It seems to be only in stable/12 and head at the moment, and it's
> /var/run/os-release by default.

That seems to be right.

And I had to run etcupdate to get /etc/os-release:

# etcupdate 
  A /etc/os-release

# file /etc/os-release 
/etc/os-release: symbolic link to ../var/run/os-release

Obviously the symlink is not created if you only run mergemaster.

--
Herbert


More information about the freebsd-questions mailing list