Cleaning up info
This commit is contained in:
parent
ec38d4f40c
commit
3978cbf69a
1 changed files with 8 additions and 7 deletions
|
@ -57,8 +57,8 @@ for CPUFREQ in /sys/devices/system/cpu/cpufreq/*
|
||||||
do
|
do
|
||||||
if [ "${CNTR}" -eq 0 ]
|
if [ "${CNTR}" -eq 0 ]
|
||||||
then
|
then
|
||||||
CF+=("CURRENT FREQUENCY")
|
CF+=("CURRENT FREQUENCY:")
|
||||||
MF+=("MAXIMUM FREQUENCY")
|
MF+=("MAXIMUM FREQUENCY:")
|
||||||
fi
|
fi
|
||||||
CF+=("CORES $(cat ${CPUFREQ}/related_cpus | awk '{print $1"-"$NF}'): $(( $(cat ${CPUFREQ}/scaling_cur_freq | sort | tail -n 1) / 1000))MHz")
|
CF+=("CORES $(cat ${CPUFREQ}/related_cpus | awk '{print $1"-"$NF}'): $(( $(cat ${CPUFREQ}/scaling_cur_freq | sort | tail -n 1) / 1000))MHz")
|
||||||
MF+=("CORES $(cat ${CPUFREQ}/related_cpus | awk '{print $1"-"$NF}'): $(( $(cat ${CPUFREQ}/cpuinfo_max_freq | sort | tail -n 1) / 1000))MHz")
|
MF+=("CORES $(cat ${CPUFREQ}/related_cpus | awk '{print $1"-"$NF}'): $(( $(cat ${CPUFREQ}/cpuinfo_max_freq | sort | tail -n 1) / 1000))MHz")
|
||||||
|
@ -70,10 +70,15 @@ done
|
||||||
# Unit: millidegree Celsius
|
# Unit: millidegree Celsius
|
||||||
TEMPE=$(cat /sys/devices/virtual/thermal/thermal_zone*/temp 2>/dev/null | sort -rn | head -1 | sed -e s+"[0-9][0-9][0-9]$"++)
|
TEMPE=$(cat /sys/devices/virtual/thermal/thermal_zone*/temp 2>/dev/null | sort -rn | head -1 | sed -e s+"[0-9][0-9][0-9]$"++)
|
||||||
|
|
||||||
echo "OPERATING SYSTEM: ${OS_NAME} - ${HOME_URL}"
|
echo "OPERATING SYSTEM: ${OS_NAME}"
|
||||||
|
echo "PROJECT URL: ${HOME_URL}"
|
||||||
echo "BUILD ID: ${BUILD_ID:0:7}"
|
echo "BUILD ID: ${BUILD_ID:0:7}"
|
||||||
echo "ARCHITECTURE: ${V_OSARCH}"
|
echo "ARCHITECTURE: ${V_OSARCH}"
|
||||||
echo "KERNEL: ${V_SYSTEM} (${V_ARCH})"
|
echo "KERNEL: ${V_SYSTEM} (${V_ARCH})"
|
||||||
|
if test -n "${BATT}"
|
||||||
|
then
|
||||||
|
echo "BATTERY REMAINING: ${BATT}%"
|
||||||
|
fi
|
||||||
echo "CPU: ${V_CPUMODEL1} (${V_CPUNB} Cores)"
|
echo "CPU: ${V_CPUMODEL1} (${V_CPUNB} Cores)"
|
||||||
if test -n "${TEMPE}"
|
if test -n "${TEMPE}"
|
||||||
then
|
then
|
||||||
|
@ -87,7 +92,3 @@ for M in "${MF[@]}"
|
||||||
do
|
do
|
||||||
echo ${M}
|
echo ${M}
|
||||||
done
|
done
|
||||||
if test -n "${BATT}"
|
|
||||||
then
|
|
||||||
echo "BATTERY: ${BATT}%"
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue