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 # Latest change: Mon Aug 07 23:39:32 CEST 2006 [mika]
8 ################################################################################
10 # little helper functions that skips the httpheader of a site
11 function skip_httpheader {
14 if [[ "$LINE" == "
\r" ]] ; then return ; fi
19 HOST=v4.showip.spamt.net
21 print -u $REPLY "GET / HTTP/1.0\r\nHost: $HOST\r\n\r\n"
27 ## END OF FILE #################################################################