applications/luci-initmgr: fix disabling of init scripts
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 04:49:43 +0000 (04:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 04:49:43 +0000 (04:49 +0000)
applications/luci-initmgr/luasrc/model/cbi/init/init.lua

index 668ebad15ac5d4a520bb8ba622306fed9b05cc03..9773d9b456f517163d20605a2245e0c0031dbe83 100644 (file)
@@ -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"