summaryrefslogtreecommitdiff
path: root/etc/functions/myip
blob: d823e71b2498faa9f13d27b3bae00ec200411c89 (plain)
1
2
3
4
5
6
7
8
9
10
if ifdata -e wlan0 && [[ $(cat /sys/class/net/wlan0/operstate) == up ]]; then
	ifdata -pa wlan0

else
	ifdata -pa lan

fi

curl http://ifconfig.me/ip
curl http://ifconfig.me/host