Commit 440d9786 authored by Kyodev's avatar Kyodev

maj

parent 480f6eb4
Pipeline #31224 passed with stages
in 36 seconds
......@@ -116,7 +116,6 @@ chmod +x getInfo
des années (info): iproute2 [linuxfoundation](https://wiki.linuxfoundation.org/networking/iproute2) le
remplace
* système
* SLiM est un projet abandonné et peu compatible avec systemd (info)
* microcodes intel|amd64 non installés (info): donc pas de corrections bugs du processeur
......@@ -195,9 +194,7 @@ IRC freenode: ##sdeb
## remerciements
* [kernel.org](https://www.kernel.org/) pour les tags cpu
* [kernel.org](https://www.kernel.org/) pour les tags cpu, et les modules à détecter
* [neofetch](https://github.com/dylanaraps/neofetch) pour du code sur la détection système.
neofetch est un successeur dynamique de screenfetch avec du code sympa
* [wireless-info](https://github.com/UbuntuForums/wireless-info) pour la détection des managers réseau
et des modules réseaux
* [pastery.net](https://www.pastery.net/) pour héberger des pastebins avec rendu markdown
scanDir 1.4.0
scanDir 1.6.0
# scan: /proc/acpi/
profondeur: 4
hôte: 1101HA
20/10/2017 18:35 +0200
29/11/2017 15:24 +0100
répertoire: /proc/acpi/button/lid/LID/
state: state: open
>>> répertoire: /proc/acpi/button/lid/LID/
fichier <state>: state: open
répertoire: /proc/acpi/button/lid/
>>> répertoire: /proc/acpi/button/lid/
répertoire: /proc/acpi/button/
>>> répertoire: /proc/acpi/button/
répertoire: /proc/acpi/
wakeup: Device S-state Status Sysfs node
>>> répertoire: /proc/acpi/
fichier <wakeup>: Device S-state Status Sysfs node
USB0 S4 *enabled pci:0000:00:1d.0
USB1 S4 *enabled pci:0000:00:1d.1
USB2 S4 *enabled pci:0000:00:1d.2
......
This diff is collapsed.
00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07)
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07)
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 07)
00:1c.1 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 (rev 07)
00:1d.0 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 07)
00:1d.1 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 07)
00:1d.2 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 07)
00:1d.7 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 07)
00:1f.0 ISA bridge: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge (rev 07)
00:1f.1 IDE interface: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller (rev 07)
01:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
03:00.0 Ethernet controller: Qualcomm Atheros AR8132 Fast Ethernet (rev c0)
04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265] (rev ff)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:00.0 Host bridge [0600]: Intel Corporation System Controller Hub (SCH Poulsbo) [8086:8100] (rev 07)
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) [1043:83ce]
Flags: bus master, fast devsel, latency 0
00:1b.0 Audio device [0403]: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller [8086:811b] (rev 07)
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) HD Audio Controller [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 23
Memory at f3f38000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 [8086:8110] (rev 07) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 16
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fbf00000-fbffffff
Prefetchable memory behind bridge: 80000000-801fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge [0604]: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 [8086:8112] (rev 07) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 17
Bus: primary=00, secondary=01, subordinate=02, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: f4000000-fbefffff
Prefetchable memory behind bridge: cc000000-cfffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller [0c03]: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 [8086:8114] (rev 07) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) USB UHCI [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 20
I/O ports at b880 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 [8086:8115] (rev 07) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) USB UHCI [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 21
I/O ports at c080 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 [8086:8116] (rev 07) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) USB UHCI [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 18
I/O ports at c480 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 [8086:8117] (rev 07) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) USB EHCI [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at f3f37c00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1f.0 ISA bridge [0601]: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge [8086:8119] (rev 07)
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) LPC Bridge [1043:83ce]
Flags: fast devsel
Kernel driver in use: lpc_sch
Kernel modules: lpc_sch
00:1f.1 IDE interface [0101]: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller [8086:811a] (rev 07) (prog-if 80 [Master])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) IDE Controller [1043:83ce]
Flags: bus master, fast devsel, latency 0
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable)
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable)
I/O ports at ffa0 [size=16]
Kernel driver in use: pata_sch
Kernel modules: pata_sch, ata_generic
01:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: AzureWave AW-NE785 / AW-NE785H 802.11bgn Wireless Full or Half-size Mini PCIe Card [1a3b:1089]
Physical Slot: eeepc-wifi
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at fbef0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath9k
Kernel modules: ath9k
03:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8132 Fast Ethernet [1969:1062] (rev c0)
Subsystem: ASUSTeK Computer Inc. AR8132 Fast Ethernet [1043:14e5]
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at fbfc0000 (64-bit, non-prefetchable) [size=256K]
I/O ports at e880 [size=128]
Capabilities: <access denied>
Kernel driver in use: atl1c
Kernel modules: atl1c
00:02.0 VGA compatible controller [0300]: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller [8086:8108] (rev 07) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. System Controller Hub (SCH Poulsbo) Graphics Controller [1043:83ce]
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f3f80000 (32-bit, non-prefetchable) [size=512K]
I/O ports at c880 [size=8]
Memory at d0000000 (32-bit, non-prefetchable) [size=256M]
Memory at f3f40000 (32-bit, non-prefetchable) [size=256K]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: gma500
Kernel modules: gma500_gfx
05:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Dell Device [1028:0695]
Flags: bus master, fast devsel, latency 0, IRQ 49
Memory at d0000000 (64-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
04:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
Subsystem: ASUSTeK Computer Inc. GeForce GT 720M [1043:124d]
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidia
#!/bin/bash
version=1.5.0
date=28.11.2017
version=1.6.0
date=29.11.2017
BOLD=$(tput bold)
STD=$(tput sgr0)
......@@ -25,10 +25,9 @@ f__requis(){ # version spécifique
# $1=rep à scanner [$2=profondeur max|4 défaut] [$3=profondeur encours|0 défaut]
# affichage stdout si $fileOutput non définis, /usr/bin/strings (binutils) requis
f__scandir(){ # 28/11/2017
f__scandir(){ # 29/11/2017
local repToScan irep rc text prof prof_max cntn lcl_cmd="$commande"
[ -d "$1" ] || f__error "erreur sur le répertoire à scanner"
f__requis "strings>binutils" # requis pour fonctionnement programme
local repToScan irep rc text prof prof_max tempo
[ "${1: -1}" == "/" ] && repToScan="$1" || repToScan="$1/" # ajout / final si besoin
[ "$2" ] && prof_max="$2" || prof_max=4 # profondeur max par défaut si besoin
[ "$3" ] && prof=$3 || prof=0 # initialisation compteur profondeur en cours si nécessaire (début)
......@@ -45,8 +44,9 @@ f__scandir(){ # 28/11/2017
fi
# traitements fichier
[[ "$irep" == "uevent" || "$irep" == "modalias" ]] && rc=" \n" || unset rc
tempo="$(strings -aw -n1 $repToScan$irep)" # au moins 1 caractère, inclus white space, all tout le fichier
[ "$tempo" ] && text+=" fichier <$irep>: $rc$tempo \n" || text+=" fichier <$irep>: <vide> \n"
lcl_cmd="$commande $repToScan$irep"
cntn=$( $lcl_cmd )
[ "$cntn" ] && text+=" > $irep: $rc$cntn \n" || text+=" > $irep$vide \n"
fi
prof=$(( prof-1 )) # niveau--
done
......@@ -54,26 +54,30 @@ f__scandir(){ # 28/11/2017
[ "$fileOutput" ] || echo -e "$text" # affichage si $fileOutput non défini
}
help(){ # 15/10/2017
echo
echo "$BOLD"
echo " scan répertoire $version"
echo "$STD"
f_help(){ # 29.11.2017
if type -p figlet 2>/dev/null ; then
echo
figlet "scanDirectory" | tr '`' "'"
echo "$BOLD $version$STD"
else
echo "$BOLD"" scanDirectory $version$STD"
fi
echo
echo " $0 répertoire [profondeur]"
echo " répertoire obligatoire"
echo " $0 répertoire [profondeur] [\"file\"]"
echo " répertoire, obligatoire, à scanner"
echo " profondeur par defaut: 4"
echo " si file, juste nom des fichiers affichés, pas de pager"
echo
echo " si répertoire = all : scan des répertoires enregistrés"
echo " si répertoire = all : scan des répertoires enregistrés, pas de pager"
echo " si répertoire absent: affichage de cette aide"
echo
echo " inscription dans fichier: _rep_a_scanner (répertoire: /rep/a/scanner/)"
echo " sauvegarde dans fichier: _rep_a_scanner (répertoire: /rep/a/scanner/)"
echo
exit 1
}
# fileOutput, [ $1=_end ] [ $2=profondeur <> de $profondeur ]
fileSortie(){ # 17/10/2017
print(){ # 17/10/2017
local prof
# fin file output
if [ "$1" == "_end" ]; then
......@@ -101,9 +105,14 @@ fileSortie(){ # 17/10/2017
#------ départ script ----------------------------------------------------------
f__requis "strings>binutils" # requis pour fonctionnement programme
# traitement options
[[ -d "$1" || "$1" == "all" ]] || help # si appel incorrect, help
[ "$2" ] && profondeur=$2 || profondeur=4 # profondeur par défaut
[[ -d "$1" || "$1" == "all" ]] || f_help # si appel incorrect, help
[ "$2" ] && profondeur=$2 || profondeur=4 # profondeur par défaut
[ "$3" == file ] && commande=":" || commande="strings -aw -n1 " # au moins 1 caractère, inclus white space, all tout le fichier
[ "$3" == file ] && vide="" || vide=": <vide>" # contenu fichier vide
[[ "$1" == "all" || "$3" == "file" ]] || nopager="ok" # réglage pager
# syntaxe pour une profondeur spécifique autre que 4: répertoire>profSpécifiq
# * pour expansion nom de fichier/répertoire permis
......@@ -113,7 +122,8 @@ liste="
/sys/class/>2 /sys/class/dmi/ /sys/class/hwmon/ /sys/class/net/>2 /sys/class/power_supply/
/sys/class/sound/>3 /sys/class/thermal/>3
/sys/devices/>2 /sys/devices/platform/coretemp.*/>2 /sys/devices/system/cpu /sys/devices/virtual/>3
/sys/class/thermal/thermal_zone0/>2 /sys/devices/virtual/thermal/thermal_zone0/>2 "
/sys/class/thermal/thermal_zone0/>2 /sys/devices/virtual/thermal/thermal_zone0/>2
"
#### scandir
if [ "$1" == "all" ];then # scan liste
......@@ -121,21 +131,21 @@ if [ "$1" == "all" ];then # scan liste
for ifilex in $(cut -d '>' -f1 <<< $ifile); do # décompose le nom si *
echo "scan: $ifilex"
if [ "$(cut -d '>' -f2 <<< $ifile | grep -c '[0-9]')" -eq 1 ]; then #2e champs numérique
fileSortie "$ifilex" "$(cut -d '>' -f2 <<< $ifile)"
print "$ifilex" "$(cut -d '>' -f2 <<< $ifile)"
f__scandir "$ifilex" "$(cut -d '>' -f2 <<< $ifile)"
else
fileSortie "$ifilex"
print "$ifilex"
f__scandir "$ifilex" "$profondeur"
fi
fileSortie "_end"
print "_end"
done
done
else # scan unitaire
fileSortie "$1"
print "$1"
f__scandir "$1" "$profondeur"
fileSortie "_end"
print "_end"
# file -bi "$fileOutput"
[ "$(which less)" ] && less "$fileOutput" || more "$fileOutput"
[ "$nopager" ] && cat "$fileOutput" || pager "$fileOutput"
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment