]> git.plutz.net Git - rpi_small/commitdiff
use gummikraken webserver
authorPaul Hänsch <paul@plutz.net>
Thu, 15 Nov 2018 17:53:28 +0000 (18:53 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 15 Nov 2018 17:53:28 +0000 (18:53 +0100)
.gitignore
files/etc/inetd.conf [deleted file]
files/srv/webserver.sed [deleted file]
gummikraken
gummikraken.mk

index 991be4d84062bb4c357d62145acc97bb655b4b84..94cfa87574c492ecd66a0816e271b1ce9f62be40 100644 (file)
@@ -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 (file)
index 0480d69..0000000
+++ /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 (executable)
index 3ef1131..0000000
+++ /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\
-<HTML><HEAD><TITLE>Oktopus</TITLE></HEAD><BODY><H1>Oktopus</H1>The machine that goes "bing".</BODY></HTML>
-p
-q
-}
-
-s;^.*$;;;
-iHTTP/1.1 307 Temporary Redirect\r\
-Location: http://oktopus\r\
-Connection: close\r\
-\r\
-p
-q
index f2e800ebee1fbfebbc00dafd484da78afc47eaee..30631e8478b07f61e776342729afbe0d28926a69 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f2e800ebee1fbfebbc00dafd484da78afc47eaee
+Subproject commit 30631e8478b07f61e776342729afbe0d28926a69
index 83957f9b1189d13409aff0b4a6a5c604c136520c..812a3b49898206c5da817c7c8652dbddf656a02c 100644 (file)
@@ -1,4 +1,5 @@
 files/srv/gummikraken/: gummikraken/
        mkdir -p "$@"
        cp -av "$</." "$@/."
+       chmod a+rX -R "$@"
        cp gummikraken/inetd.conf files/etc/inetd.conf