From 9683f284b12970e996f79c77a3cb998c9c52fccd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 15 Nov 2018 18:53:28 +0100 Subject: [PATCH] use gummikraken webserver --- .gitignore | 2 ++ files/etc/inetd.conf | 1 - files/srv/webserver.sed | 25 ------------------------- gummikraken | 2 +- gummikraken.mk | 1 + 5 files changed, 4 insertions(+), 27 deletions(-) delete mode 100644 files/etc/inetd.conf delete mode 100755 files/srv/webserver.sed diff --git a/.gitignore b/.gitignore index 991be4d..94cfa87 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ raspi_root/ raspi.img config.mk +files/etc/inetd.conf +files/srv/gummikraken/ files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi id_rsa diff --git a/files/etc/inetd.conf b/files/etc/inetd.conf deleted file mode 100644 index 0480d69..0000000 --- a/files/etc/inetd.conf +++ /dev/null @@ -1 +0,0 @@ -80 stream tcp nowait nobody /bin/sed sed -nrf /srv/webserver.sed diff --git a/files/srv/webserver.sed b/files/srv/webserver.sed deleted file mode 100755 index 3ef1131..0000000 --- a/files/srv/webserver.sed +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sed -nrf - -:START -/\r?\n\r?$/bRESPONSE; N; bSTART; - -:RESPONSE - -/\nHost: oktopus\r?\n/{ -s;^.*$;;; -iHTTP/1.1 200 OK\r\ -Content-Type: text/html; encoding=utf-8\r\ -Connection: close\r\ -\r\ -Oktopus

Oktopus

The machine that goes "bing". -p -q -} - -s;^.*$;;; -iHTTP/1.1 307 Temporary Redirect\r\ -Location: http://oktopus\r\ -Connection: close\r\ -\r\ -p -q diff --git a/gummikraken b/gummikraken index f2e800e..30631e8 160000 --- a/gummikraken +++ b/gummikraken @@ -1 +1 @@ -Subproject commit f2e800ebee1fbfebbc00dafd484da78afc47eaee +Subproject commit 30631e8478b07f61e776342729afbe0d28926a69 diff --git a/gummikraken.mk b/gummikraken.mk index 83957f9..812a3b4 100644 --- a/gummikraken.mk +++ b/gummikraken.mk @@ -1,4 +1,5 @@ files/srv/gummikraken/: gummikraken/ mkdir -p "$@" cp -av "$