New version, tarball. Trivial wget/curl change, nothing else. No need to upgrade packages.

This commit is contained in:
inxi-svn 2015-08-02 21:21:04 +00:00
parent 44535d0b0c
commit e1feddf2ae
2 changed files with 24 additions and 6 deletions

18
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### Version: 2.2.26 #### Version: 2.2.27
#### Date: 2015-07-06 #### Date: 2015-08-02
#### Patch Number: 00 #### Patch Number: 00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -7351,8 +7351,8 @@ get_networking_usb_data()
get_networking_wan_ip_data() get_networking_wan_ip_data()
{ {
eval $LOGFS eval $LOGFS
local ip='' ip_data='' downloader_error=0 local ip='' ip_data='' downloader_error=0 ua=''
# get ip using wget redirect to stdout. This is a clean, text only IP output url, # get ip using wget redirect to stdout. This is a clean, text only IP output url,
# single line only, ending in the ip address. May have to modify this in the future # single line only, ending in the ip address. May have to modify this in the future
# to handle ipv4 and ipv6 addresses but should not be necessary. # to handle ipv4 and ipv6 addresses but should not be necessary.
@ -7361,7 +7361,10 @@ get_networking_wan_ip_data()
# ip=$( wget -q -O - $WAN_IP_URL | gawk --re-interval ' # ip=$( wget -q -O - $WAN_IP_URL | gawk --re-interval '
case $DOWNLOADER in case $DOWNLOADER in
curl) curl)
ip_data="$( curl -y $DL_TIMEOUT -s $WAN_IP_URL )" || downloader_error=$? if [[ -n $( grep 'smxi.org' <<< $WAN_IP_URL ) ]];then
ua="-A s-tools/inxi-ip"
fi
ip_data="$( curl $ua -y $DL_TIMEOUT -s $WAN_IP_URL )" || downloader_error=$?
;; ;;
fetch) fetch)
ip_data="$( fetch -T $DL_TIMEOUT -q -o - $WAN_IP_URL )" || downloader_error=$? ip_data="$( fetch -T $DL_TIMEOUT -q -o - $WAN_IP_URL )" || downloader_error=$?
@ -7370,7 +7373,10 @@ get_networking_wan_ip_data()
ip_data="$( ftp -o - $WAN_IP_URL 2>/dev/null )" || downloader_error=$? ip_data="$( ftp -o - $WAN_IP_URL 2>/dev/null )" || downloader_error=$?
;; ;;
wget) wget)
ip_data="$( wget -T $DL_TIMEOUT -q -O - $WAN_IP_URL )" || downloader_error=$? if [[ -n $( grep 'smxi.org' <<< $WAN_IP_URL ) ]];then
ua="-U s-tools/inxi-ip"
fi
ip_data="$( wget $ua -T $DL_TIMEOUT -q -O - $WAN_IP_URL )" || downloader_error=$?
;; ;;
no-downloader) no-downloader)
downloader_error=1 downloader_error=1

View file

@ -1,3 +1,15 @@
=====================================================================================
Version: 2.2.27
Patch Version: 00
Script Date: 2015-08-02
-----------------------------------
Changes:
-----------------------------------
New version, tarball. Trivial wget/curl change, nothing else. No need to upgrade packages.
-----------------------------------
-- Harald Hope - Sun, 02 Aug 2015 14:18:45 -0700
===================================================================================== =====================================================================================
Version: 2.2.26 Version: 2.2.26
Patch Version: 00 Patch Version: 00