luci-0.9: merge r5184-r5189

This commit is contained in:
Jo-Philipp Wich 2009-07-31 23:36:15 +00:00
parent 92ca7f33c2
commit e180231545
5 changed files with 5 additions and 4 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=freifunk-watchdog
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_BUILD_DEPENDS := uci

View file

@ -66,7 +66,7 @@
#define WATCH_KEEPALIVE '\0'
/* System load error action and treshold */
#define LOAD_TRESHOLD 5.00
#define LOAD_TRESHOLD 15.00
#define LOAD_ACTION "/sbin/reboot"
/* Fallback binary name (passed by makefile) */

View file

@ -16,7 +16,7 @@ $Id$
<% if self.widget == "select" then %>
<select class="cbi-input-select" onchange="cbi_d_update(this.id)"<%= attr("id", cbid) .. attr("name", cbid) .. ifattr(self.size, "size") %>>
<% for i, key in pairs(self.keylist) do -%>
<option id="cbi-<%=self.config.."-"..section.."-"..self.option.."-"..key%>"<%= attr("value", key) .. ifattr(self:cfgvalue(section) == key, "selected", "selected") %>><%=striptags(self.vallist[i])%></option>
<option id="cbi-<%=self.config.."-"..section.."-"..self.option.."-"..key%>"<%= attr("value", key) .. ifattr((self:cfgvalue(section) or self.default) == key, "selected", "selected") %>><%=striptags(self.vallist[i])%></option>
<%- end %>
</select>
<% elseif self.widget == "radio" then

View file

@ -26,6 +26,7 @@ Luci = util.class(srv.Handler)
function Luci.__init__(self, name, prefix)
srv.Handler.__init__(self, name)
self.prefix = prefix
dsp.indexcache = "/tmp/luci-indexcache"
end
function Luci.handle_HEAD(self, ...)

View file

@ -57,7 +57,7 @@ end
-- @param id Session identifier
-- @return Session data
function read(id)
if not id then
if not id or #id == 0 then
return
end
if not id:match("^%w+$") then