mirror of https://framagit.org/kyodev/kyopages.git
maj
This commit is contained in:
parent
4608a2b68c
commit
4e72ece46a
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=0.3.0
|
||||
date="20/02/2018"
|
||||
version=0.5.0
|
||||
date="22/02/2018"
|
||||
script=$(basename $0)
|
||||
output="$script.md"
|
||||
|
||||
echo
|
||||
if [[ "$1" == "--help" || "$1" == "-n" ]] ; then
|
||||
if [[ "$1" == "--help" || "$1" == "-h" ]] ; then
|
||||
echo "$script [options]"
|
||||
echo
|
||||
echo " -h --help : cet affichage"
|
||||
|
@ -34,25 +34,29 @@ exec 1>"$output"
|
|||
|
||||
# divers, portable
|
||||
echo '```'
|
||||
xset -version &>/dev/null && xset -version || echo "xset inexistant"
|
||||
xdpyinfo -version &>/dev/null && xdpyinfo -version || echo "xdpyinfo inexistant"
|
||||
free --version &>/dev/null && free --version || echo "free inexistant"
|
||||
lspci --version &>/dev/null && lspci --version || echo "lspci inexistant"
|
||||
uptime --version &>/dev/null && uptime --version || echo "uptime inexistant"
|
||||
upower --version &>/dev/null && upower --version || echo "upower inexistant"
|
||||
xargs --version &>/dev/null && xargs --version | head -n1 || echo "xargs inexistant"
|
||||
lsblk --version &>/dev/null && lsblk --version || echo "lsblk inexistant"
|
||||
type -p glxinfo && echo "glxinfo existe" || echo glxinfo inexistant
|
||||
type -p acpi &>/dev/null && acpi --version | head -n1 || echo "acpi inexistant"
|
||||
|
||||
# divers
|
||||
bash --version &>/dev/null && bash --version | head -n1 || echo "bash KO"
|
||||
x-window-manager --version &>/dev/null && x-window-manager --version | head -n1 || echo "x-window-manager KO"
|
||||
free --version &>/dev/null && free --version || echo "free KO"
|
||||
lspci --version &>/dev/null && lspci --version || echo "lspci KO"
|
||||
uptime --version &>/dev/null && uptime --version || echo "uptime KO"
|
||||
upower --version &>/dev/null && upower --version || echo "upower KO"
|
||||
lsblk --version &>/dev/null && lsblk --version || echo "lsblk KO"
|
||||
type -p acpi &>/dev/null && acpi --version | head -n1 || echo "acpi KO"
|
||||
journalctl --version &>/dev/null && journalctl --version || echo "journalctl KO"
|
||||
echo
|
||||
xset -version &>/dev/null && xset -version || echo "xset KO"
|
||||
xdpyinfo -version &>/dev/null && xdpyinfo -version || echo "xdpyinfo KO"
|
||||
xargs --version &>/dev/null && xargs --version | head -n1 || echo "xargs KO"
|
||||
type -p glxinfo && echo "glxinfo ok" || echo "glxinfo KO"
|
||||
if xdriinfo nscreens &>/dev/null ; then
|
||||
echo -n "nb écrans?: "
|
||||
xdriinfo nscreens
|
||||
echo
|
||||
else
|
||||
echo "xdriinfo inexistant"
|
||||
echo "xdriinfo KO"
|
||||
fi
|
||||
|
||||
echo -e '```\n'
|
||||
|
||||
if [ -e '/etc/shells' ]; then
|
||||
|
@ -102,7 +106,7 @@ echo "## lspci -nnk"
|
|||
echo '```'
|
||||
lspci -nnk
|
||||
echo -e '```\n'
|
||||
#divers
|
||||
# /usr/share/xsessions
|
||||
echo "##ls -l /usr/share/xsessions "
|
||||
echo '```'
|
||||
ls -l /usr/share/xsessions
|
||||
|
@ -127,10 +131,10 @@ echo
|
|||
|
||||
exit 0
|
||||
|
||||
wget -nv -O debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/test/debug_gi
|
||||
wget -nv -O debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/tests/debug_gi
|
||||
chmod +x debug_gi && ./debug_gi
|
||||
|
||||
curl -o debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/test/debug_gi
|
||||
curl -o debug_gi https://framagit.org/kyodev/kyopages/raw/master/scripts/tests/debug_gi
|
||||
|
||||
cat > debug << "END"
|
||||
#!/bin/bash
|
||||
|
|
Loading…
Reference in New Issue