Changeset 8673


Ignore:
Timestamp:
May 6, 2012, 11:47:57 AM (7 years ago)
Author:
jow
Message:

libs/sys: fix luci.sys.init.index() (#399)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/sys/luasrc/sys.lua

    r8558 r8673  
    796796function init.index(name)
    797797    if fs.access(init.dir..name) then
    798         return call("env -i sh -c 'source %s%s; exit $START' >/dev/null"
     798        return call("env -i sh -c 'source %s%s enabled; exit ${START:-255}' >/dev/null"
    799799            %{ init.dir, name })
    800800    end
Note: See TracChangeset for help on using the changeset viewer.