From eae313436c568e6bcab8c219dc38a8fa825269c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 21 Aug 2021 21:02:04 -0500 Subject: Refactory network --- hyperterm/tools/network.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hyperterm/tools/network.sh') 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}')}" } -- cgit v1.2.3