Re: Distribution identification
"Christopher Yeoh" <[email protected]>
| Newsgroups | gmane.linux.lsb.discuss |
|---|---|
| Message-ID | <[email protected]> |
At 2003/11/13 23:10+0100 Michal Svec writes: > It would be nice if there could be a single way for this stuff. > It could be in, let's say, /etc/linux-release or even more > general in /etc/distribution, /etc/release, /etc/product or > /etc/identification or like that. > > It should be script-parsable, for example something like this: > > VENDOR="SUSE" > PRODUCT="SUSE Linux" > RELEASE="9.0" > VERSION="SP3" > > What do you think? We already have lsb_release which is included as part of an LSB compliant system: http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/lsbrelease.html We do probably have to do a little work in the spec to specify output explictly so scripts can use it reliably in the future. Chris -- [email protected] IBM OzLabs Linux Development Group Canberra, Australia