Changeset 8674

Show
Ignore:
Timestamp:
05/06/12 10:48:06 (14 months ago)
Author:
jow
Message:

modules/admin-full: filter init scripts without START in startup model

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua

    r8171 r8674  
    33 
    44Copyright 2008 Steven Barth <steven@midlink.org> 
    5 Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org> 
     5Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org> 
    66Copyright 2010 Manuel Munz <freifunk at somakoma dot de> 
    77 
     
    2525    local enabled = luci.sys.init.enabled(name) 
    2626 
    27     inits["%02i.%s" % { index, name }] = { 
    28         name    = name, 
    29         index   = tostring(index), 
    30         enabled = enabled 
    31     } 
     27    if index < 255 then 
     28        inits["%02i.%s" % { index, name }] = { 
     29            name    = name, 
     30            index   = tostring(index), 
     31            enabled = enabled 
     32        } 
     33    end 
    3234end 
    3335