From: Jo-Philipp Wich Date: Sun, 6 May 2012 09:48:06 +0000 (+0000) Subject: modules/admin-full: filter init scripts without START in startup model X-Git-Tag: 0.11.0~680 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a27481f35c97d74fca4ea654fdc2807145ad9502;p=oweals%2Fluci.git modules/admin-full: filter init scripts without START in startup model --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua b/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua index ed1eabe1f..592c173a0 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua @@ -2,7 +2,7 @@ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth -Copyright 2010-2011 Jo-Philipp Wich +Copyright 2010-2012 Jo-Philipp Wich Copyright 2010 Manuel Munz Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,11 +24,13 @@ for _, name in ipairs(luci.sys.init.names()) do local index = luci.sys.init.index(name) local enabled = luci.sys.init.enabled(name) - inits["%02i.%s" % { index, name }] = { - name = name, - index = tostring(index), - enabled = enabled - } + if index < 255 then + inits["%02i.%s" % { index, name }] = { + name = name, + index = tostring(index), + enabled = enabled + } + end end