Posted on | January 5, 2009 | 4 Comments
If you package and distribute any kind of POSIX operating system (i.e. it has an /etc), please consider adding a file named /etc/vendor with the following format to your offering:
DistroName DistroVersion DistroDomain
Foonix 1.23 foonix.com
One of the biggest headaches for anyone hoping to support as many free operating systems as possible is teaching a program to find out just WHAT operating system its running on. Digging through /etc/redhat-release, /etc/issue, /etc/issue.net and the dozen other possibilities just sucks.
I can’t believe we’ve come this far and not one standard file to identify a vendor and release has been adopted. Something so simple makes writing very portable applications rather maddening