diff options
| author | Luke Kanies <luke@madstop.com> | 2009-01-27 17:58:47 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-01-27 17:58:47 -0600 |
| commit | 0bcdb71f88cb66140b344d38fd94ce2f161dcd2c (patch) | |
| tree | 7cfde3873c4f6414ad57418805653c65a01124db | |
| parent | fab9d1c63f0a3671dc5f8fa0233823a59f1bce06 (diff) | |
| download | facter-0bcdb71f88cb66140b344d38fd94ce2f161dcd2c.tar.gz facter-0bcdb71f88cb66140b344d38fd94ce2f161dcd2c.tar.xz facter-0bcdb71f88cb66140b344d38fd94ce2f161dcd2c.zip | |
Fixing #1854 - Adding ArchLinux support
Used patch by miah.
Signed-off-by: Luke Kanies <luke@madstop.com>
| -rw-r--r-- | lib/facter/operatingsystem.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/facter/operatingsystem.rb b/lib/facter/operatingsystem.rb index 51e6248..5bff78d 100644 --- a/lib/facter/operatingsystem.rb +++ b/lib/facter/operatingsystem.rb @@ -18,6 +18,8 @@ Facter.add(:operatingsystem) do "Mandriva" elsif FileTest.exists?("/etc/mandrake-release") "Mandrake" + elsif FileTest.exists?("/etc/arch-release") + "Archlinux" elsif FileTest.exists?("/etc/redhat-release") txt = File.read("/etc/redhat-release") if txt =~ /centos/i |
