76693cce16
Change-Id: I18b4affccfc8773766e3eb66df7f97c8f58724e0
7 lines
190 B
Bash
Executable File
7 lines
190 B
Bash
Executable File
#!/bin/ash
|
|
|
|
MYIP=$(/sbin/ifconfig eth0|grep 'inet addr'|awk -F: '{print $2}'| awk '{print $1}');
|
|
while true; do
|
|
echo -e "HTTP/1.0 200 OK\r\n\r\nWelcome to $MYIP" | sudo nc -l -p 80
|
|
done
|