From 26b014bfa2dfca19bd97415ab335717e13fcc02a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 29 Jan 2011 20:13:19 +0100 Subject: Add myip function --- etc/functions/myip | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/functions/myip (limited to 'etc/functions/myip') diff --git a/etc/functions/myip b/etc/functions/myip new file mode 100644 index 0000000..0775c45 --- /dev/null +++ b/etc/functions/myip @@ -0,0 +1,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 -- cgit v1.2.3