projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e36ee05
)
* luci/lib/sys: fix inline documentation of sys.init
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2008 14:05:53 +0000
(14:05 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2008 14:05:53 +0000
(14:05 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index
230201d
..
ec35e55
100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-547,7
+547,8
@@
function init.names()
end
--- Test whether the given init script is enabled
end
--- Test whether the given init script is enabled
--- @return Boolean indicating whether init is enabled
+-- @param name Name of the init script
+-- @return Boolean indicating whether init is enabled
function init.enabled(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." enabled") == 0 )
function init.enabled(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." enabled") == 0 )
@@
-556,7
+557,8
@@
function init.enabled(name)
end
--- Get the index of he given init script
end
--- Get the index of he given init script
--- @return Numeric index value
+-- @param name Name of the init script
+-- @return Numeric index value
function init.index(name)
if luci.fs.access(init.dir..name) then
return call("source "..init.dir..name.." && exit $START")
function init.index(name)
if luci.fs.access(init.dir..name) then
return call("source "..init.dir..name.." && exit $START")
@@
-564,7
+566,8
@@
function init.index(name)
end
--- Enable the given init script
end
--- Enable the given init script
--- @return Boolean indicating success
+-- @param name Name of the init script
+-- @return Boolean indicating success
function init.enable(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." enable") == 0 )
function init.enable(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." enable") == 0 )
@@
-572,7
+575,8
@@
function init.enable(name)
end
--- Disable the given init script
end
--- Disable the given init script
--- @return Boolean indicating success
+-- @param name Name of the init script
+-- @return Boolean indicating success
function init.disable(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." disable") == 0 )
function init.disable(name)
if luci.fs.access(init.dir..name) then
return ( call(init.dir..name.." disable") == 0 )