aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools/network.sh
blob: 6a2325f94dc4121e159ce32ee62fe58cad8108ef (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
function __network() {
    unset MY_IP
    : "${MY_IP:=$(ip route show table local | awk -F "local" '{print $2}' | uniq)}"

    unset MY_ISP
    : "${MY_ISP:=$(host whoami.akamai.net. ns1-1.akamaitech.net. | grep "whoami.akamai.net has" | awk '{print $4}')}"
}