summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-initmgr/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-08 04:49:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-08 04:49:43 +0000
commiteeb9fd748b3e0bb5c7642cbbf8b3fa51000672d1 (patch)
tree49dbf0b5200be68281165011f037dc07cf5960ca /applications/luci-initmgr/luasrc
parent538af500a6c2ce72f5ffd86bae086bac7e17d1e7 (diff)
applications/luci-initmgr: fix disabling of init scripts
Diffstat (limited to 'applications/luci-initmgr/luasrc')
-rw-r--r--applications/luci-initmgr/luasrc/model/cbi/init/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/luci-initmgr/luasrc/model/cbi/init/init.lua b/applications/luci-initmgr/luasrc/model/cbi/init/init.lua
index 668ebad15a..9773d9b456 100644
--- a/applications/luci-initmgr/luasrc/model/cbi/init/init.lua
+++ b/applications/luci-initmgr/luasrc/model/cbi/init/init.lua
@@ -39,6 +39,7 @@ i = s:option(DummyValue, "index", translate("Start priority"))
n = s:option(DummyValue, "name", translate("Initscript"))
e = s:option(Flag, "enabled", translate("initmgr_enabled"))
+e.rmempty = false
e.cfgvalue = function(self, section)
return inits[section].enabled and "1" or "0"