mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.8.4
This commit is contained in:
parent
b96fd952df
commit
2b62293e89
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.8.3
|
||||
version=2.8.4
|
||||
date="17/10/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -1077,7 +1077,7 @@ figet_batt_test(){ # 17/10/2017
|
|||
echo -e "$text" >> "$fileOutput"
|
||||
}
|
||||
|
||||
figet_cpu(){ # thanks neofetch, assigne $fget_cpu $fget_core # 10/10/2017
|
||||
figet_cpu(){ # thanks neofetch, assigne $fget_cpu $fget_core # 17/10/2017
|
||||
local cpu speed_dir temp_dir speedMin speed speedMin speed temp cores thread plurielc plurielt
|
||||
cpu="$(gawk -F ': | @' '/model name|Processor/ {printf $2; exit}' /proc/cpuinfo)"
|
||||
speed_dir="/sys/devices/system/cpu/cpu0/cpufreq"
|
||||
|
@ -1104,7 +1104,8 @@ figet_cpu(){ # thanks neofetch, assigne $fget_cpu $fget_core # 10/10/2017
|
|||
# Fix for speeds under 1ghz
|
||||
if [[ -z "${speed:1}" ]]; then speed="0.${speed}"; else speed="${speed:0:1}.${speed:1}"; fi
|
||||
if [[ -z "${speedMin:1}" ]]; then speedMin="0.${speedMin}"; else speedMin="${speedMin:0:1}.${speedMin:1}"; fi
|
||||
cpu="$cpu @ ${speedMin} - ${speed} GHz $temp"
|
||||
# cpu="$cpu @ ${speedMin} - ${speed} GHz $temp"
|
||||
cpu="$cpu @ ${speedMin} - ${speed} GHz"
|
||||
# Remove uneeded patterns from cpu output, this is faster than sed/gsub
|
||||
cpu="${cpu//(tm)}"
|
||||
cpu="${cpu//(TM)}"
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
|
||||
* smartmontools/smartctl (root,temp?)
|
||||
* batterie souris? /sys/class/input/input19/ , 20
|
||||
filtrer temperature 0 (sur i5: 6temp!)
|
||||
* filtrer temperature 0 (sur i5: 6temp!)
|
||||
|
||||
---
|
||||
|
||||
* f__requis f__wget_test fscript_get_version fscript_update fscript_cronAnacron
|
||||
|
||||
## 2.8.3 17/10/2017
|
||||
## 2.8.4 17/10/2017
|
||||
|
||||
* nouveau: figet_hw_test, acpi -V si disponible, tests (temporaires) sur
|
||||
/sys/class/thermal/ & /sys/devices/virtual/thermal/ & hwmon0(méthode neofetch)
|
||||
|
@ -32,6 +32,7 @@ filtrer temperature 0 (sur i5: 6temp!)
|
|||
fichier de sortie)
|
||||
* révision: figet_ip_public, fscript_get_version, f__wget_test, fscript_update, suppression option tries
|
||||
personnalisée
|
||||
* révision: figet_cpu, suppression affichage temperature core en attendant mieux
|
||||
|
||||
## 2.7.0 16/10/2017
|
||||
|
||||
|
|
Loading…
Reference in New Issue