mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.6.1
This commit is contained in:
parent
3bce64066e
commit
cba0bfdf17
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.6.0
|
||||
version=2.6.1
|
||||
date="14/10/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -865,7 +865,7 @@ fi_system_analyse(){ # 25/09/2017
|
|||
echo -e "$text" >> "$fileOutput"
|
||||
}
|
||||
|
||||
fi_systeme(){ # 13/10/2017
|
||||
fi_systeme(){ # 14/10/2017
|
||||
local mbr description uname bootImage xorg shells lastboot uptime pluriel charge text
|
||||
[ -d /sys/firmware/efi ] && mbr="**EFI**" || mbr="**Legacy (mbr)**"
|
||||
[ -x "/usr/bin/lsb_release" ] && description="$(lsb_release -ds)" #dépend de apt install lsb-release, sur debian, en standard, juste : lsb-base
|
||||
|
@ -903,7 +903,8 @@ fi_systeme(){ # 13/10/2017
|
|||
text+="GPU | **$fget_gpu** \n"
|
||||
text+="boot | $mbr \n"
|
||||
text+="distribution | **$fget_distro** \n"
|
||||
f__architecture || f__info "Architecture non supportée" "vous pouvez contacter contacter $projet $contact si vous voulez aider à parfaire le script"
|
||||
f__architecture || f__info "Architecture non supportée" "vous pouvez contacter $projet, $contact " \
|
||||
"pour aider à parfaire le script"
|
||||
text+='```\n'
|
||||
text+="architecture: $architecture \n"
|
||||
[ "$description" ] && text+="description: $description \n"
|
||||
|
@ -1595,10 +1596,10 @@ fipaste_curl_pastery(){ # 14/10/2017
|
|||
local curl id pluriel
|
||||
# curl -X POST "https://www.pastery.net/api/paste/?title=getInfo&language=markdown" -F file=@$1
|
||||
curl="$(curl --silent -X POST "https://www.pastery.net/api/paste/?title=getInfo_$version&language=markdown&duration=$(($2*1440))" --data-binary @$1)"
|
||||
if grep '"result": "error' <<< "$curl" ;then
|
||||
f__info "raw" "$RED Erreur critique export rapport:"
|
||||
if grep -q '"result": "error' <<< "$curl" ;then
|
||||
f__info "$RED""Erreur critique export rapport:"
|
||||
f__info "$curl"
|
||||
f__info "merci contacter $projet $contact pour aider à parfaire le script"
|
||||
f__info "merci contacter $projet, $contact pour aider à parfaire le script"
|
||||
else
|
||||
id="$(echo $curl | cut -d '"' -f 4)"
|
||||
[ "$pasteDuration" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
|
|
|
@ -10,11 +10,8 @@
|
|||
* bug temp cpu (neofetch)
|
||||
|
||||
---
|
||||
debug-hw x401
|
||||
paste error non UTF-8 file->tempoNonUTF-8
|
||||
---
|
||||
|
||||
## 2.6.0 14/10/2017
|
||||
## 2.6.1 14/10/2017
|
||||
|
||||
* révision: figet_batt: +batt_volt_now, réécriture avec gawk majoritaire, alertes batterie
|
||||
* révision: f__scandir
|
||||
|
|
Loading…
Reference in New Issue