Skip to content

Commit

Permalink
Merge pull request #307 from mt-inside/gentoo-linux
Browse files Browse the repository at this point in the history
Add detection of Gentoo Linux
  • Loading branch information
stanislav-tkach authored May 17, 2022
2 parents a80877c + 5f19116 commit 6d7a3e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions os_info/src/linux/lsb_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub fn get() -> Option<Info> {
Some("Debian") => Type::Debian,
Some("EndeavourOS") => Type::EndeavourOS,
Some("Fedora") | Some("Fedora Linux") => Type::Fedora,
Some("Gentoo") => Type::Gentoo,
Some("Linuxmint") => Type::Mint,
Some("ManjaroLinux") => Type::Manjaro,
Some("Mariner") => Type::Mariner,
Expand Down
2 changes: 2 additions & 0 deletions os_info/src/os_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub enum Type {
Fedora,
/// FreeBSD (<https://en.wikipedia.org/wiki/FreeBSD>).
FreeBSD,
/// Gentoo Linux (<https://en.wikipedia.org/wiki/Gentoo_Linux>).
Gentoo,
/// Linux based operating system (<https://en.wikipedia.org/wiki/Linux>).
HardenedBSD,
/// HardenedBSD (https://hardenedbsd.org/)
Expand Down

0 comments on commit 6d7a3e0

Please sign in to comment.