mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.44.2
This commit is contained in:
parent
11dc381f61
commit
027f226485
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.44.1
|
||||
version=2.44.2
|
||||
date="24/11/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -1988,12 +1988,12 @@ figet_cpu(){ #v2 24/11/2017
|
|||
)
|
||||
cpu2=$(
|
||||
gawk -F ':' '
|
||||
/^vendor_id/{gsub(/ /,"",$2);vendor=$2}
|
||||
/^vendor_id/{gsub(/ /,"");gsub(/AuthenticAMD/,"AMD");gsub(/GenuineIntel/,"Intel");vendor=$2}
|
||||
/^cpu family/{family=$2}
|
||||
/^model[^ ]/{model=$2}; /^stepping/{rev=$2}
|
||||
END {
|
||||
code=sprintf("{0x%.2X|0x%.2X}",family,model);
|
||||
print "{fréq. mini/nominale/maxi} " vendor" famille" family", modèle"model,code", révision" rev
|
||||
print "{fréq. mini/nominale[/maxi]} " vendor" famille" family", modèle"model,code", révision" rev
|
||||
}' <<< "$cpuinfo"
|
||||
)
|
||||
cpu3=$(
|
||||
|
|
Loading…
Reference in New Issue