diff --git a/files/www/cgi-bin/ports b/files/www/cgi-bin/ports index 3ebee4ab..43e9f64a 100755 --- a/files/www/cgi-bin/ports +++ b/files/www/cgi-bin/ports @@ -1100,6 +1100,17 @@ function print_forwarding() end function print_services() + local activesvc = nil + if nixio.fs.stat("/var/etc/olsrd.conf") then + activesvc = {} + for line in io.lines("/var/etc/olsrd.conf") + do + local plparam = line:match([[^%s*(PlParam "service" ".*")%s*$]]) + if plparam then + activesvc[plparam] = true + end + end + end html.print("
Advertised Services |
---|