Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 10:06:55 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        ports@freebsd.org, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Get ${OSREL} at install time
Message-ID:  <CAFDf7UL9VqoRsOKFS7Qd1V-YTw4SmqkSgVFL4c%2BHWCpy4cakmg@mail.gmail.com>
In-Reply-To: <p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs@z47kz6x7kwfv>
References:  <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs@z47kz6x7kwfv>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ba8a4a05f998a119
Content-Type: text/plain; charset="UTF-8"

Hey,

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...
>

Maybe this it what I'm looking for: check /etc/os-release and install time.
The above code is lua?
Is there a way to use shell to check os-release file?

Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000ba8a4a05f998a119
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hey,<br></div><br><div class=3D"gmail_quo=
te"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex">
Not really OSREL, but when I needed to know the FreeBSD version at<br>
install time, this is what I did:<br>
<br>
<a href=3D"https://cgit.freebsd.org/ports/tree/security/unix-selfauth-helpe=
r/pkg-post-install.lua" rel=3D"noreferrer" target=3D"_blank">https://cgit.f=
reebsd.org/ports/tree/security/unix-selfauth-helper/pkg-post-install.lua</a=
><br>
<br>
It&#39;s not exactly nice, just parsing the version manually...<br clear=3D=
"all"></blockquote><div><br></div><div>Maybe this it what I&#39;m looking f=
or: check /etc/os-release and install time.</div><div>The above code is lua=
?</div><div>Is there a way to use shell to check os-release file?</div><div=
><br></div><div>Thanks,<br></div></div><br><span class=3D"gmail_signature_p=
refix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D=
"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Commi=
tter (ports)</span></div></div></div>

--000000000000ba8a4a05f998a119--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UL9VqoRsOKFS7Qd1V-YTw4SmqkSgVFL4c%2BHWCpy4cakmg>