aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools/network.sh
blob: 1a21a571407c6c2f2def880fdf4a817923b9c298 (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 myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}')}"
}