diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-10-03 17:33:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-10-03 17:33:04 +0000 |
commit | 77159d8b66bcf4b6290fc8d046bf85d8a69f7bac (patch) | |
tree | 1688200573573f71135c367c9daf44fca734e893 | |
parent | 24a52d6f3eb17976450959aa38ad63b291c2fb54 (diff) |
* luci/lib/sys: fixes for sys.init api
-rw-r--r-- | libs/sys/luasrc/sys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index ec35e5546a..566e815f80 100644 --- 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 |