aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools/network.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/network.sh
parent63556fa05129b7616a427d83d1425e120653c981 (diff)
downloadhyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.tar.lz
hyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.tar.xz
hyperterm-eae313436c568e6bcab8c219dc38a8fa825269c7.zip
Refactory network
Diffstat (limited to 'hyperterm/tools/network.sh')
-rw-r--r--hyperterm/tools/network.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/hyperterm/tools/network.sh b/hyperterm/tools/network.sh
index 0bab431..1a21a57 100644
--- a/hyperterm/tools/network.sh
+++ b/hyperterm/tools/network.sh
@@ -1,11 +1,8 @@
#!/bin/bash
-# Network
-function my_ip() {
+function __network() {
unset MY_IP
: "${MY_IP:=$(ip route show table local | awk -F "local" '{print $2}' | uniq)}"
-}
-function my_isp() {
unset MY_ISP
: "${MY_ISP:=$(host myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}')}"
}