Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / package / luci / modules / luci-mod-status / luasrc / view / admin_status / index / 40-dhcp-leases.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008-2018 Jo-Philipp Wich <jo@mein.io>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%
8         local fs = require "nixio.fs"
9         local has_dhcp = fs.access("/etc/config/dhcp")
10
11         if has_dhcp then
12                 include("lease_status")
13         end
14 %>