From 612a0afa63144aae338a51c9206a589d4b8fdd65 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 7 Feb 2024 14:06:30 +0100 Subject: WIP web server --- rootfs/srv/http/index.html | 10 ++++++++++ rootfs/srv/http/off | 2 ++ rootfs/srv/http/on | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 rootfs/srv/http/index.html create mode 100755 rootfs/srv/http/off create mode 100755 rootfs/srv/http/on (limited to 'rootfs/srv/http') diff --git a/rootfs/srv/http/index.html b/rootfs/srv/http/index.html new file mode 100644 index 0000000..f60b829 --- /dev/null +++ b/rootfs/srv/http/index.html @@ -0,0 +1,10 @@ + + + + + Hello world! + + +

Turn leds on or off

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