summaryrefslogtreecommitdiffstats
path: root/src/var/www/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/var/www/cgi-bin')
-rw-r--r--src/var/www/cgi-bin/uptime.cgi18
1 files changed, 18 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