From 216264b6e4eff411e6051bd993726cefdfbd44b5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 6 May 2012 09:47:57 +0000 Subject: libs/sys: fix luci.sys.init.index() (#399) --- libs/sys/luasrc/sys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/sys/luasrc/sys.lua') 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 -- cgit v1.2.3