Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Nov 2, 2012, at 1:09 PM, Scott Ehrlich wrote: > If I wanted to write a script to obtain distro flavor (Ubuntu, CentOS, > RH, Mint, BSD, Solaris, etc), major/minor version (5.3, 10.6, etc), > hardware brand/make/model, at least for starters, what would be the > best way to attack it? My approach would be to use something that's already available, unless there was a pressing need otherwise. I'd suggest "facter" by folks at the Puppet labs: http://www.puppetlabs.com/puppet/related-projects/facter/ # facter operatingsystem CentOS # facter operatingsystemrelease 6.2 # facter productname X8DTT-INF There are a lot more facts built-in: # facter | wc -l 75 ~irl
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |