Re: Get ${OSREL} at install time

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Tue, 18 Apr 2023 08:52:35 UTC
* Nuno Teixeira <eduardo@freebsd.org> [20230418 09:05]:
> Any sugestion or example that permits to get OSREL at install time?

Not really OSREL, but when I needed to know the FreeBSD version at
install time, this is what I did:

https://cgit.freebsd.org/ports/tree/security/unix-selfauth-helper/pkg-post-install.lua

It's not exactly nice, just parsing the version manually...

-- 
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer (mentee) --            {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231