Fixed warning in console_type fact when /etc/boot.conf is missing
This commit is contained in:
parent
92f1617327
commit
1255a15d6c
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ Facter.add('console_type') do
|
|||
end
|
||||
end
|
||||
end
|
||||
elsif kernel == 'OpenBSD'
|
||||
elsif kernel == 'OpenBSD' and File.exists?('/etc/boot.conf')
|
||||
File.open('/etc/boot.conf', 'r') do |f|
|
||||
while line = f.gets
|
||||
if line =~ /^set tty com[0-9]$/
|
||||
|
|
Loading…
Add table
Reference in a new issue