language tweak to -M output

This commit is contained in:
inxi-svn 2012-03-26 22:28:58 +00:00
parent 673c4d4585
commit 02348a009f

6
inxi
View file

@ -6937,14 +6937,14 @@ print_machine_data()
fi
IFS="$ORIGINAL_IFS"
else
system_line="${C2}No /sys/class/dmi machine data. Try newer kernel, or install dmidecode.${CN}"
system_line="${C2}No /sys/class/dmi/id machine data. Try newer kernel, or install dmidecode.${CN}"
fi
# patch to dump all of above if dmidecode was data source and non root user
if [[ ${A_MACHINE_DATA[0]} == 'dmidecode-non-root-user' || ${A_MACHINE_DATA[0]} == 'dmidecode-no-smbios-dmi-data' ]];then
if [[ ${A_MACHINE_DATA[0]} == 'dmidecode-non-root-user' ]];then
system_line="${C2}Using dmidecode, no /sys/class/dmi. You must be root to use dmidecode.${CN}"
system_line="${C2}No /sys/class/dmi. Using dmidecode: you must be root to use dmidecode.${CN}"
elif [[ ${A_MACHINE_DATA[0]} == 'dmidecode-no-smbios-dmi-data' ]];then
system_line="${C2}Using dmidecode, no /sys/class/dmi. No dmidecode data available for system.${CN}"
system_line="${C2}No /sys/class/dmi. Using dmidecode: no machine data available.${CN}"
fi
mobo_line=''
bios_line=''