From e5e50ee371fb54c8d3dcedf352d575a5e8776afd Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 23 Sep 2014 01:09:15 +0000 Subject: [PATCH] bsd fix, turns out at least dragonfly has /sys, but it's empty, so updated check --- inxi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index a7595cc..de6b538 100755 --- a/inxi +++ b/inxi @@ -6661,7 +6661,11 @@ 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 memory="" @@ -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 '