summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-06 09:48:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-06 09:48:06 +0000
commita27481f35c97d74fca4ea654fdc2807145ad9502 (patch)
treec81234562cb015896207db27432d5e795f6c9b74 /modules/admin-full
parent216264b6e4eff411e6051bd993726cefdfbd44b5 (diff)
modules/admin-full: filter init scripts without START in startup model
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/startup.lua14
1 files changed, 8 insertions, 6 deletions
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 <steven@midlink.org>
-Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
+Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
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