diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-06 09:47:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-06 09:47:57 +0000 |
commit | 216264b6e4eff411e6051bd993726cefdfbd44b5 (patch) | |
tree | 2161efa353a2ae9eb2440972d0f1b72aa16b9f06 /libs/sys/luasrc/sys.lua | |
parent | 98bf018c1b2c2b46b84da3039d79da636a6fc172 (diff) |
libs/sys: fix luci.sys.init.index() (#399)
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 7906d2be2c..54f7f2b1a9 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -795,7 +795,7 @@ end -- @return Numeric index value function init.index(name) if fs.access(init.dir..name) then - return call("env -i sh -c 'source %s%s; exit $START' >/dev/null" + return call("env -i sh -c 'source %s%s enabled; exit ${START:-255}' >/dev/null" %{ init.dir, name }) end end |