mirror of https://framagit.org/kyodev/kyopages.git
getInfo 4.1.0
This commit is contained in:
parent
f5c35a2e4f
commit
b5a9dffa3b
|
@ -348,7 +348,6 @@ f__wcv(){ # 28/02/2018
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# test wget, $1=url à tester, $2=''|print|loc|test
|
# test wget, $1=url à tester, $2=''|print|loc|test
|
||||||
# par défaut, sortie du script (même si url testée ok) avec affichage erreur ou ok
|
# par défaut, sortie du script (même si url testée ok) avec affichage erreur ou ok
|
||||||
# si $2=print affiche url testée & entêtes http & location, return 0
|
# si $2=print affiche url testée & entêtes http & location, return 0
|
||||||
|
@ -3735,10 +3734,10 @@ figet_ip(){ # 02/03/2018
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1=-4|-6, assigne $fg_ip_pub
|
# $1=-4|-6, assigne $fg_ip_pub
|
||||||
figet_ip_pub(){ # 24/12/2017
|
figet_ip_pub(){ # 03/03/2018
|
||||||
local dig_test ip_test iip
|
local dig_test ip_test iip
|
||||||
|
|
||||||
list_ip4(){ # testé 11/12/2017
|
list_ip4(){ # testé 11/12/2017
|
||||||
|
|
||||||
ip_test=( # pas de https
|
ip_test=( # pas de https
|
||||||
http://whatismyip.akamai.com
|
http://whatismyip.akamai.com
|
||||||
|
@ -3764,7 +3763,7 @@ figet_ip_pub(){ # 24/12/2017
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
list_ip6(){ # testé 11/12/2017
|
list_ip6(){ # testé 11/12/2017
|
||||||
|
|
||||||
ip_test=(
|
ip_test=(
|
||||||
http://ipv6.whatismyip.akamai.com
|
http://ipv6.whatismyip.akamai.com
|
||||||
|
@ -3788,16 +3787,19 @@ figet_ip_pub(){ # 24/12/2017
|
||||||
}
|
}
|
||||||
|
|
||||||
x_ip_pub=1
|
x_ip_pub=1
|
||||||
|
|
||||||
option="$1"
|
option="$1"
|
||||||
unset fg_ip_pub
|
unset fg_ip_pub
|
||||||
|
#
|
||||||
# assignation variables
|
# assignation variables
|
||||||
if [ "$1" == "-4" ]; then
|
if [ "$1" == "-4" ]; then
|
||||||
ping -4 -c1 conncheck.opensuse.org &>/dev/null || ping -4 -c1 free.fr &>/dev/null || return 1 # test connectivité
|
ping -c1 conncheck.opensuse.org &>/dev/null || ping -c1 free.fr &>/dev/null || return 1 # test connectivité
|
||||||
list_ip4_dig
|
list_ip4_dig
|
||||||
list_ip4
|
list_ip4
|
||||||
ip_telnet=4.ifcfg.me
|
ip_telnet=4.ifcfg.me
|
||||||
elif [ "$1" == "-6" ]; then
|
elif [ "$1" == "-6" ]; then
|
||||||
ping -6 -c1 conncheck.opensuse.org &>/dev/null || ping -6 -c1 free.fr &>/dev/null || return 1 # test connectivité
|
[ -h $( which ping6 ) ] && ping6="ping -6 " || ping6="ping6"
|
||||||
|
"$ping6" -c1 conncheck.opensuse.org &>/dev/null || "$ping6" -c1 free.fr &>/dev/null || return 1 # test connectivité
|
||||||
list_ip6_dig
|
list_ip6_dig
|
||||||
list_ip6
|
list_ip6
|
||||||
ip_telnet=6.ifcfg.me
|
ip_telnet=6.ifcfg.me
|
||||||
|
@ -4526,7 +4528,7 @@ fscript_update(){ # 01/03/2018
|
||||||
rm -rf "$dirTemp/"
|
rm -rf "$dirTemp/"
|
||||||
}
|
}
|
||||||
|
|
||||||
prg_init(){ # 01/03/2018
|
prg_init(){ # 03/03/2018
|
||||||
|
|
||||||
PATH='/usr/sbin:/usr/bin:/sbin:/bin'
|
PATH='/usr/sbin:/usr/bin:/sbin:/bin'
|
||||||
TERM=xterm
|
TERM=xterm
|
||||||
|
@ -4542,15 +4544,15 @@ prg_init(){ # 01/03/2018
|
||||||
# options bash spé
|
# options bash spé
|
||||||
# shopt -s nocasematch ( case, [[ ), nocaseglob ( fichier )
|
# shopt -s nocasematch ( case, [[ ), nocaseglob ( fichier )
|
||||||
|
|
||||||
|
# test bash v4
|
||||||
|
[ "$BASH_VERSINFO" == 4 ] || f__error "bash v4 requis" "version installée: $BASH_VERSION"
|
||||||
|
|
||||||
# whereis script retourne vide si installé
|
# whereis script retourne vide si installé
|
||||||
DIRNAME=$( dirname $0 )
|
DIRNAME=$( dirname $0 )
|
||||||
DIRNAME=${DIRNAME#/usr/bin} # suppression /usr/bin éventuel au début ( lien )
|
DIRNAME=${DIRNAME#/usr/bin} # suppression /usr/bin éventuel au début ( lien )
|
||||||
DIRNAME=${DIRNAME#/opt/bin} # suppression /opt/bin éventuel au début ( install )
|
DIRNAME=${DIRNAME#/opt/bin} # suppression /opt/bin éventuel au début ( install )
|
||||||
[ "$DIRNAME" ] && DIRNAME+="/"
|
[ "$DIRNAME" ] && DIRNAME+="/"
|
||||||
|
|
||||||
# test bash v4
|
|
||||||
[ "$BASH_VERSINFO" == 4 ] || f__error "bash v4 requis" "version installée: $BASH_VERSION"
|
|
||||||
|
|
||||||
# test /proc
|
# test /proc
|
||||||
if [ ! -e /proc/cpuinfo ]; then
|
if [ ! -e /proc/cpuinfo ]; then
|
||||||
if ! mount | grep -q "type proc"; then
|
if ! mount | grep -q "type proc"; then
|
||||||
|
@ -4594,7 +4596,6 @@ prg_init(){ # 01/03/2018
|
||||||
# essai évitement awk à la voidlinux (souci avec awk -F ou -F ' | ')
|
# essai évitement awk à la voidlinux (souci avec awk -F ou -F ' | ')
|
||||||
if ! echo 'abc=123' | mawk -F '=|:' {} &>/dev/null; then
|
if ! echo 'abc=123' | mawk -F '=|:' {} &>/dev/null; then
|
||||||
f__error "awk en place va poser problème." "Pour participer au débuggage, vous pouvez contacter:" "$contact"
|
f__error "awk en place va poser problème." "Pour participer au débuggage, vous pouvez contacter:" "$contact"
|
||||||
:
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# détection rapide systeme deb
|
# détection rapide systeme deb
|
||||||
|
|
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## getInfo 4.1.0 03/03/2018
|
||||||
|
|
||||||
|
* fix: figet_ip_pub, ubuntu 16.04
|
||||||
|
|
||||||
|
## getInfo 4.1.0 03/03/2018
|
||||||
|
|
||||||
|
cosmétique
|
||||||
|
|
||||||
## getInfo 4.1.0 03/03/2018
|
## getInfo 4.1.0 03/03/2018
|
||||||
|
|
||||||
plus: lanceur gfetch (oublié publié)
|
plus: lanceur gfetch (oublié publié)
|
||||||
|
@ -55,7 +63,7 @@ fix: f__wcv -l
|
||||||
|
|
||||||
## getInfo 3.22.0 22/02/2018
|
## getInfo 3.22.0 22/02/2018
|
||||||
|
|
||||||
* plus: version lightdm, xfwm,, xfce
|
* plus: version lightdm, xfwm, xfce
|
||||||
* plus: adaptation ubuntu, upstart, unity version, compiz version, mir
|
* plus: adaptation ubuntu, upstart, unity version, compiz version, mir
|
||||||
* plus: datage report debug
|
* plus: datage report debug
|
||||||
* fix: date installation
|
* fix: date installation
|
||||||
|
|
Loading…
Reference in New Issue