mirror of https://framagit.org/kyodev/kyopages.git
1.22.0
This commit is contained in:
parent
72a821d735
commit
523b9f5de2
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=1.21.0
|
||||
version=1.22.0
|
||||
date="22/09/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -308,15 +308,14 @@ _vérifier la config resume_, l'UUID ne correspond pas à celui du swap. En cas
|
|||
echo -e "$text" >> "$fileOutput"
|
||||
}
|
||||
|
||||
fi_dmesg(){ # root only, si $1=dmesg rapport dmesg only # 06/09/2017
|
||||
fi_dmesg(){ # root only, si $1=dmesg rapport dmesg only # 22/09/2017
|
||||
local text dmesg_err dmesg_warn dmesg_crit
|
||||
text="## dmesg (erreur, warning ou critique) \n\n"
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
if [ "$1" == "dmesg" ]; then
|
||||
f__info "$RED""dmesg ne peut être affiché qu'avec les droits root"
|
||||
return 1
|
||||
fi
|
||||
text+="ne peut être affiché qu'avec les droits root\n"
|
||||
text+="ne peut être affiché qu'avec les droits root \n"
|
||||
echo -e "$text" >> "$fileOutput"
|
||||
return 0
|
||||
fi
|
||||
|
@ -328,28 +327,22 @@ fi_dmesg(){ # root only, si $1=dmesg rapport dmesg only # 06/09/2017
|
|||
text+="**dmesg -l err** (erreur) \n"
|
||||
text+='```\n'
|
||||
text+="$dmesg_err \n"
|
||||
text+='```\n\n'
|
||||
text+='```\n'
|
||||
fi
|
||||
if [ "$dmesg_warn" ]; then
|
||||
text+="**dmesg -l warn** (warning) \n"
|
||||
text+='```\n'
|
||||
text+="$dmesg_warn \n"
|
||||
text+='```\n\n'
|
||||
text+='```\n'
|
||||
fi
|
||||
if [ "$dmesg_crit" ]; then
|
||||
text+="**dmesg -l crit** (critique) \n"
|
||||
text+='```\n'
|
||||
text+="$dmesg_crit \n"
|
||||
text+='```\n\n'
|
||||
fi
|
||||
if [ -z "$dmesg_crit" ] && [ -z "$dmesg_warn" ] && [ -z "$dmesg_warn" ]; then
|
||||
text+='```\n'
|
||||
text+="pas de messages \n"
|
||||
text+='```\n\n'
|
||||
fi
|
||||
if [ "$1" == "dmesg" ]; then
|
||||
echo > "$fileOutput" # vidage $fileOutput
|
||||
chown "$user_:" "$fileOutput"
|
||||
if [ -z "$dmesg_crit" ] && [ -z "$dmesg_warn" ] && [ -z "$dmesg_err" ]; then
|
||||
text+="pas de messages à afficher \n"
|
||||
fi
|
||||
echo -e "$text" >> "$fileOutput"
|
||||
}
|
||||
|
@ -1219,6 +1212,7 @@ prg_2(){ # traitements principaux
|
|||
fi_dmesg; printf ".\n\n"
|
||||
}
|
||||
prg_3(){ # fin de traitements
|
||||
echo -e "--- \n" >> "$fileOutput"
|
||||
echo -e "[getInfo v$version]($urlNotice) * $(date '+%a %d/%m/%Y %k:%M:%S')\n" >> "$fileOutput"
|
||||
f__dialog_oui_non "non" "exporter sur un pastebin par défaut?" && fipaste
|
||||
f__info "\n le rapport est disponible en local, fichier:$GREEN $fileOutput"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# changelog getInfo
|
||||
|
||||
|
||||
## 1.21.1 22/09/2017
|
||||
## 1.22.0 22/09/2017
|
||||
|
||||
* système, présentation en table pour meilleure présentation
|
||||
* daemon d'initialisation (systemd ou autre)
|
||||
|
@ -10,6 +10,7 @@
|
|||
* révision fi_reseau, homogénéité nnv au lieu de nnk et sélection par slot , présentation
|
||||
* révision fi_sources, présentation et nombres de paquets upgradables
|
||||
* présentaion rapport, modifs mineures
|
||||
* présentation et fix bug mineur fi_dmesg
|
||||
|
||||
## 1.20.0 18/09/2017
|
||||
|
||||
|
|
Loading…
Reference in New Issue