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

else
	ifdata -pa lan

fi

curl https://derf.homelinux.org/cgi-bin/clientinfo/ip.cgi