<%# Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Copyright 2011 Manuel Munz Licensed to the public under the Apache License 2.0. -%> <% function write_conf(conf, file) local fs = require "nixio.fs" if fs.access(conf) then luci.http.header("Content-Disposition", "attachment; filename="..file) luci.http.prepare_content("text/plain") luci.http.write(fs.readfile(conf)) end end conf = luci.http.formvalue() if conf.olsrd2_uci then write_conf("/etc/config/olsrd2", "olsrd2") return false end %> <%+header%>

OLSRv2 <%:Overview%>

<%:Network%>
<%:Interfaces%>
<%:Neighbors%>
<%:Nodes%>
<%:HNA%>
<%:Links total%>
<%:Links per node (average)%>
-
OLSRv2 <%:Configuration%>
<%:Version%>
-
<%:Download Config%>
<%+footer%>