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 {
12 for i in {1..6} ; do read -u $REPLY LINE; done
18 print -u $REPLY "GET / HTTP/1.1\r\nHost: $HOST\r\n\r\n"
24 ## END OF FILE #################################################################