Land #11053, Add Openwall detection to Linux system lib
parent
67cddffc51
commit
dc7954c829
|
@ -87,6 +87,12 @@ module System
|
|||
system_data[:distro] = "gentoo"
|
||||
system_data[:version] = version
|
||||
|
||||
# Openwall
|
||||
elsif etc_files.include?("owl-release")
|
||||
version = read_file("/etc/owl-release").gsub(/\n|\\n|\\l/,'')
|
||||
system_data[:distro] = 'openwall'
|
||||
system_data[:version] = version
|
||||
|
||||
# Generic
|
||||
elsif etc_files.include?("issue")
|
||||
version = read_file("/etc/issue").gsub(/\n|\\n|\\l/,'')
|
||||
|
|
Loading…
Reference in New Issue