diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/myip | 9 |
1 files changed, 9 insertions, 0 deletions
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 |