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 f30a2b679c15e6a29c5b4a1d6ad51ee54f75edaf..6985d78fc50844a2e20005c5404890365b0bb6bd 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