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

9
inxi
View file

@ -6661,7 +6661,11 @@ get_memory_data()
# procs memory page disks faults cpu # 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 # 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 # 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 { BEGIN {
IGNORECASE=1 IGNORECASE=1
memory="" memory=""
@ -11249,7 +11253,8 @@ print_dmidecode_error()
if [[ $1 == 'sys' ]];then if [[ $1 == 'sys' ]];then
if [[ $B_FORCE_DMIDECODE == 'true' ]];then if [[ $B_FORCE_DMIDECODE == 'true' ]];then
sysDmiError='Forcing ' 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 ' sysDmiError='No /sys/class/dmi; using '
else else
sysDmiError='Using ' sysDmiError='Using '