projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a52d6
)
* luci/lib/sys: fixes for sys.init api
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2008 17:33:04 +0000
(17:33 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 3 Oct 2008 17:33:04 +0000
(17:33 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index ec35e5546a8d03290c732289d0b1ceffd22ad065..566e815f804c901eab01ed92096938780490d50e 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-561,7
+561,7
@@
end
-- @return Numeric index value
function init.index(name)
if luci.fs.access(init.dir..name) then
- return call("source "..init.dir..name.."
&&
exit $START")
+ return call("source "..init.dir..name.."
;
exit $START")
end
end
@@
-570,7
+570,7
@@
end
-- @return Boolean indicating success
function init.enable(name)
if luci.fs.access(init.dir..name) then
- return ( call(init.dir..name.." enable") ==
0
)
+ return ( call(init.dir..name.." enable") ==
1
)
end
end