[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Determine system ver (Debian vs. other Linuxes) at runtime?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt England wrote:
> So I'm left with figuring out much harder ways to tell system revs
> apart.  I'm guessing I'm going to have to make an application which does
> nothing but evaluate a system and report it's variant (Redhat vs SuSE
> vs. Debian) and revision (Debian Woody/3.0, Sarge/3.1, etc).

If /etc/debian_version exists, then it's debian, and the file contents should
be the version number (which will be "testing/unstable" if the user is not
running a stable release).

- --
Chris Howie
http://www.chrishowie.com

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d-(--) s:- a--->? C++(+++)$> UL++++ P++++$ L+++>++++ E---
W++ N o++ K? w--$ O M- V- PS--(---) PE++ Y+ PGP++ t+ 5? X-
R(+)>- tv-(--) b- DI+> D++ G>+++ e>++ h(--)>--- !r>+++ y->+++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDtZwPqlk5sZw9W7kRAodaAKCmDbp3MM60oB69qolr9VeBB6lo9wCffM0l
QKgZSD5q6eve9kbzfPR0zrA=
=82bv
-----END PGP SIGNATURE-----



Reply to: