File: dhcpd-pools.cgi

package info (click to toggle)
dhcpd-pools 2.28-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,904 kB
  • ctags: 2,238
  • sloc: ansic: 21,796; sh: 5,202; perl: 271; php: 63; makefile: 49
file content (34 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
#
# Simple CGI for dhcpd-pools.

echo Content-type: text/html
echo

# To make lease table more fancy use CSS definition something
# like this in your style.css file.
#
# TABLE.dhcpd-pools {
#    border-style : groove;
#    margin-left : 2px;
#    foo : bar;
# }
#
# http://www.w3.org/TR/REC-CSS2/tables.html
#
# And uncomment this line.
#
#echo <link type="text/css" rel="stylesheet" href="/style.css" />

echo "<html>"
echo "<body>"
echo "<p>This was situation at "
date
echo "</p>"

/usr/sbin/dhcpd-pools --format html

echo "</body>"
echo "</html>"

# EOF