From b9dfdaaa1ae0148dd8a3e78508c636636e7396a6 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 7 Feb 2024 16:15:21 +0100 Subject: web server done --- rootfs/srv/http/cgi-bin/off | 2 ++ rootfs/srv/http/cgi-bin/on | 2 ++ rootfs/srv/http/index.html | 21 ++++++++++++++------- rootfs/srv/http/off | 2 -- rootfs/srv/http/on | 2 -- 5 files changed, 18 insertions(+), 11 deletions(-) create mode 100755 rootfs/srv/http/cgi-bin/off create mode 100755 rootfs/srv/http/cgi-bin/on delete mode 100755 rootfs/srv/http/off delete mode 100755 rootfs/srv/http/on (limited to 'rootfs/srv') diff --git a/rootfs/srv/http/cgi-bin/off b/rootfs/srv/http/cgi-bin/off new file mode 100755 index 0000000..e70be2d --- /dev/null +++ b/rootfs/srv/http/cgi-bin/off @@ -0,0 +1,2 @@ +#!/bin/sh +leds 0 diff --git a/rootfs/srv/http/cgi-bin/on b/rootfs/srv/http/cgi-bin/on new file mode 100755 index 0000000..0da06b0 --- /dev/null +++ b/rootfs/srv/http/cgi-bin/on @@ -0,0 +1,2 @@ +#!/bin/sh +leds 1 diff --git a/rootfs/srv/http/index.html b/rootfs/srv/http/index.html index f60b829..0812323 100644 --- a/rootfs/srv/http/index.html +++ b/rootfs/srv/http/index.html @@ -1,10 +1,17 @@ - - - Hello world! - - -

Turn leds on or off

- + + + Hello world! + + + + + + Turn leds +
+ or +
+ + diff --git a/rootfs/srv/http/off b/rootfs/srv/http/off deleted file mode 100755 index e70be2d..0000000 --- a/rootfs/srv/http/off +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -leds 0 diff --git a/rootfs/srv/http/on b/rootfs/srv/http/on deleted file mode 100755 index 0da06b0..0000000 --- a/rootfs/srv/http/on +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -leds 1 -- cgit v1.2.3