#!/bin/sh
#-----------------------------------------------------------------------------
# /var/install/bin/system-hardware-list - list hardware
# Copyright (c) 2015 The Eisfair Team <team@eisfair.org>
#-----------------------------------------------------------------------------

# dmidecode not work on ARM system
if [ -e /sys/class/thermal/thermal_zone0/temp ]
then
    {
    cat /proc/cpuinfo
    echo ""
    echo -n "Temperature     : "
    awk '{printf "%3.1f C\n", $1/1000}' /sys/class/thermal/thermal_zone0/temp
    } > /var/log/hwlist
else
    /usr/sbin/dmidecode -q >> /var/log/hwlist &
fi
/var/install/bin/show-doc.cui -f /var/log/hwlist
exit 0
