aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools/sysinfo.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-21 21:02:04 -0500
committerJesús <heckyel@hyperbola.info>2021-08-21 21:02:04 -0500
commiteae313436c568e6bcab8c219dc38a8fa825269c7 (patch)
treeb6f1e072628cd7fc196fc87a36c9ca6bada4ce7d /hyperterm/tools/sysinfo.sh
parent63556fa05129b7616a427d83d1425e120653c981 (diff)
downloadhyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.tar.lz
hyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.tar.xz
hyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.zip
Refactory network
Diffstat (limited to 'hyperterm/tools/sysinfo.sh')
-rw-r--r--hyperterm/tools/sysinfo.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/hyperterm/tools/sysinfo.sh b/hyperterm/tools/sysinfo.sh
index 0654e7a..e2db9ec 100644
--- a/hyperterm/tools/sysinfo.sh
+++ b/hyperterm/tools/sysinfo.sh
@@ -2,6 +2,7 @@
# System information
function ii() {
+ __network "$1" > /dev/null 2>&1 # import network
case ${LANG/_*/} in
es)
printf '%s\e[1;36m%s\e[m\n' "Has iniciado sesión en " "$(hostname -f)"
@@ -12,7 +13,6 @@ function ii() {
printf '\n\e[1;32m%s\e[m\n%s\n' "Estadísticas de la memoria:" "$(free)"
printf '\n\e[1;32m%s\e[m\n' "Dirección IP Local:"
printf '%s\n' "${MY_IP:-"No conectado"}"
- my_isp "$1" &> /dev/null
printf '\n\e[1;32m%s\e[m\n' "Dirección ISP:"
printf '%s\n' "${MY_ISP:-"No conectado"}"
;;
@@ -25,7 +25,6 @@ function ii() {
printf '\n\e[1;32m%s\e[m\n%s\n' "Memory stats:" "$(free)"
printf '\n\e[1;32m%s\e[m\n' "Local IP Address:"
printf '%s\n' "${MY_IP:-"Not connected"}"
- my_isp "$1" &> /dev/null
printf '\n\e[1;32m%s\e[m\n' "ISP Address:"
printf '%s\n' "${MY_ISP:-"Not connected"}"
;;