Re: Get ${OSREL} at install time
- In reply to: Felix Palmen : "Re: Get ${OSREL} at install time"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 09:06:55 UTC
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)