summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/var/www/cgi-bin/uptime.cgi18
-rw-r--r--src/var/www/index.html13
2 files changed, 31 insertions, 0 deletions
diff --git a/src/var/www/cgi-bin/uptime.cgi b/src/var/www/cgi-bin/uptime.cgi
new file mode 100644
index 0000000..f1badae
--- /dev/null
+++ b/src/var/www/cgi-bin/uptime.cgi
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+cat <<EOF
+Content-Type: text/html; charset=utf-8
+
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Operating System Uptime</title>
+ </head>
+ <body>
+ <h1>Operating System Uptime</h1>
+ <pre>$(uptime)</pre>
+ </body>
+</html>
+EOF
diff --git a/src/var/www/index.html b/src/var/www/index.html
new file mode 100644
index 0000000..e166dba
--- /dev/null
+++ b/src/var/www/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Embedded Operating System Distribution</title>
+ </head>
+ <body>
+ <h1>It works!</h1>
+ <p>This is the default Web page for this server.</p>
+ <p>The HTTP daemon of the embedded operating system distribution is running.</p>
+ </body>
+</html>