2021-08-21 21:02:04 -05:00

9 lines
270 B
Bash

#!/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}')}"
}