slitaz-tools diff hacker/Public/cgi-bin/tests.sh @ rev 135
bootfloppybox: add grub
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 09 19:50:17 2008 +0000 (2008-04-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hacker/Public/cgi-bin/tests.sh Wed Apr 09 19:50:17 2008 +0000 1.3 @@ -0,0 +1,27 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 + 1.7 +# Variables. 1.8 +HOST=`cat /etc/hostname` 1.9 +RELEASE=`uname -r` 1.10 + 1.11 +# Content type. 1.12 +echo -e "Content-Type: text/html\n" 1.13 + 1.14 +# Header. 1.15 +echo "<html>" 1.16 +echo "<head>" 1.17 +echo " <title>cgi-bin tests</title>" 1.18 +echo "</head>" 1.19 +echo "<body>" 1.20 + 1.21 +# Page content. 1.22 +echo "<h1>Web server cgi-bin tests</h1>" 1.23 +echo "<hr>" 1.24 +echo "<p>" 1.25 +echo "This script is runnig on $HOST with a Linux kernel $RELEASE." 1.26 +echo "</p>" 1.27 + 1.28 +# Footer. 1.29 +echo "</body>"; 1.30 +echo "</html>"