mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
New version, tarball. Trivial wget/curl change, nothing else. No need to upgrade packages.
This commit is contained in:
parent
44535d0b0c
commit
e1feddf2ae
16
inxi
16
inxi
|
@ -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,7 +7351,7 @@ 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
|
||||||
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue