libs/sys: fix unwanted invocation of initscripts when probing index of rcS
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 18:56:03 +0000 (18:56 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 18:56:03 +0000 (18:56 +0000)
libs/sys/luasrc/sys.lua

index f30a2b6..6985d78 100644 (file)
@@ -748,7 +748,7 @@ end
 -- @return             Numeric index value
 function init.index(name)
        if fs.access(init.dir..name) then
-               return call("source "..init.dir..name.."; exit $START")
+               return call("source "..init.dir..name.." enabled; exit $START")
        end
 end