* luci/libs/sys: fix function name of init.disable()
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2008 14:03:20 +0000 (14:03 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2008 14:03:20 +0000 (14:03 +0000)
libs/sys/luasrc/sys.lua

index ea55ed5..230201d 100644 (file)
@@ -573,7 +573,7 @@ end
 
 --- Disable the given init script
 -- @return     Boolean indicating success
 
 --- Disable the given init script
 -- @return     Boolean indicating success
-function init.enable(name)
+function init.disable(name)
        if luci.fs.access(init.dir..name) then
                return ( call(init.dir..name.." disable") == 0 )
        end
        if luci.fs.access(init.dir..name) then
                return ( call(init.dir..name.." disable") == 0 )
        end