bsd fix, turns out at least dragonfly has /sys, but it's empty, so updated check

This commit is contained in:
inxi-svn 2014-09-23 01:09:15 +00:00
parent 1e48007c62
commit e5e50ee371

7
inxi
View file

@ -6661,6 +6661,10 @@ get_memory_data()
# procs memory page disks faults cpu
# r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
# 0 0 0 21880M 6444M 924 32 11 0 822 827 0 0 853 832 463 8 3 88
# dragonfly
# procs memory page disks faults cpu
# r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
# 0 0 0 0 84060 30273993 2845 12742 1164 407498171 320960902 0 0 424453025 1645645889 1254348072 35 38 26
BEGIN {
IGNORECASE=1
@ -11249,7 +11253,8 @@ print_dmidecode_error()
if [[ $1 == 'sys' ]];then
if [[ $B_FORCE_DMIDECODE == 'true' ]];then
sysDmiError='Forcing '
elif [[ $BSD_TYPE == '' || -d /sys ]];then
# dragonfly has /sys, but it's empty
elif [[ $BSD_TYPE == '' || -d /sys/devices ]];then
sysDmiError='No /sys/class/dmi; using '
else
sysDmiError='Using '