3 # Purpose: return IP address of running system on stdout (requires network access)
4 # Authors: grml-team (grml.org), (c) Alexander Wirt <formorer@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 # little helper functions that skips the httpheader of a site
10 function skip_httpheader {
13 if [[ "$LINE" == "
\r" ]] ; then return ; fi
18 HOST=v4.showip.spamt.net
20 print -u $REPLY "GET / HTTP/1.0\r\nHost: $HOST\r\n\r\n"
26 ## END OF FILE #################################################################