(command.CommandList
  children: [
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (C {(Lit_Other '[')} {(-f)} {(/proc/modules)} {(Lit_Other ']')})
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
      ]
    )
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (C {(Lit_Other '[')} {(-x)} {(/sbin/modprobe)} {(Lit_Other ']')})
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
      ]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (C {(Lit_Other '[')} {(-f)} {(/etc/default/rcS)} {(Lit_Other ']')})
        (C {(.)} {(/etc/default/rcS)})
      ]
    )
    (C {(.)} {(/lib/lsb/init-functions)})
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:PATH spids:[88])
          op: Equal
          rhs: {(SQ <'/sbin:/bin'>)}
          spids: [88]
        )
      ]
      spids: [88]
    )
    (command.Case
      to_match: {(DQ ($ VSub_Number '$1'))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: [(command.Sentence child:(C {(init_is_upstart)}) terminator:<Op_Semi ';'>)]
                  action: [(command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})]
                  spids: [16777215 112]
                )
              ]
              spids: [16777215 120]
            )
          ]
          spids: [103 104 123 16777215]
        )
        (case_arm
          pat_list: [{(stop)} {(restart)} {(reload)} {(force-reload)}]
          action: [
            (C {(log_warning_msg)} 
              {(DQ ("Action '") ($ VSub_Number '$1') ("' is meaningless for this init script"))}
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
          ]
          spids: [127 134 151 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (C {(log_success_msg)} {(DQ ('Usage: ') ($ VSub_Number '$0') (' start'))})
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [155 156 16777215 172]
        )
      ]
      spids: [94 100 172]
    )
    (command.FuncDef
      name: load_module
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:module spids:[184])
                  op: Equal
                  spids: [184]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:args spids:[186])
                  op: Equal
                  spids: [186]
                )
              ]
              spids: [182]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:module spids:[189])
                  op: Equal
                  rhs: {(DQ ($ VSub_Number '$1'))}
                  spids: [189]
                )
              ]
              spids: [189]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:args spids:[195])
                  op: Equal
                  rhs: {(DQ ($ VSub_Number '$2'))}
                  spids: [195]
                )
              ]
              spids: [195]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} 
                          {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(log_action_msg)} 
                      {(DQ ('Loading kernel module ') ($ VSub_DollarName '$module'))}
                    )
                    (command.AndOr
                      ops: [Op_DPipe]
                      children: [
                        (C {(modprobe)} {($ VSub_DollarName '$module')} {($ VSub_DollarName '$args')})
                        (C {(true)})
                      ]
                    )
                  ]
                  spids: [16777215 218]
                )
              ]
              else_action: [
                (command.AndOr
                  ops: [Op_DPipe]
                  children: [
                    (command.SimpleCommand
                      words: [{(modprobe)} {($ VSub_DollarName '$module')} {($ VSub_DollarName '$args')}]
                      redirects: [
                        (redir.Redir
                          op: <Redir_Great '>'>
                          fd: 16777215
                          arg_word: {(/dev/null)}
                        )
                        (redir.Redir
                          op: <Redir_GreatAnd '2>&'>
                          fd: 2
                          arg_word: {(1)}
                        )
                      ]
                    )
                    (C {(true)})
                  ]
                )
              ]
              spids: [240 261]
            )
          ]
          spids: [179]
        )
      spids: [175 178]
    )
    (command.FuncDef
      name: modules_files
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:modules_load_dirs spids:[275])
                  op: Equal
                  rhs: 
                    {
                      (SQ 
                        <
'/etc/modules-load.d /run/modules-load.d /usr/local/lib/modules-load.d /usr/lib/modules-load.d /lib/modules-load.d'
                        >
                      )
                    }
                  spids: [275]
                )
              ]
              spids: [273]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:processed spids:[283])
                  op: Equal
                  rhs: {(SQ <' '>)}
                  spids: [283]
                )
              ]
              spids: [281]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:add_etc_modules spids:[291])
                  op: Equal
                  rhs: {(true)}
                  spids: [291]
                )
              ]
              spids: [289]
            )
            (command.ForEach
              iter_name: dir
              iter_words: [{($ VSub_DollarName '$modules_load_dirs')}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.AndOr
                      ops: [Op_DPipe]
                      children: [
                        (C {(Lit_Other '[')} {(-d)} {($ VSub_DollarName '$dir')} {(Lit_Other ']')})
                        (command.ControlFlow
                          token: <ControlFlow_Continue continue>
                        )
                      ]
                    )
                    (command.ForEach
                      iter_name: file
                      iter_words: [
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (command.AndOr
                                    ops: [Op_DPipe]
                                    children: [
                                      (command.SimpleCommand
                                        words: [
                                          {(run-parts)}
                                          {(--list)}
                                          {(--regex) (Lit_Other '=') (SQ <'\\.conf$'>)}
                                          {($ VSub_DollarName '$dir')}
                                        ]
                                        redirects: [
                                          (redir.Redir
                                            op: <Redir_Great '2>'>
                                            fd: 2
                                            arg_word: {(/dev/null)}
                                          )
                                        ]
                                      )
                                      (C {(true)})
                                    ]
                                  )
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [327 347]
                          )
                        }
                      ]
                      do_arg_iter: F
                      body: 
                        (command.DoGroup
                          children: [
                            (command.Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:base spids:[355])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.BracedVarSub
                                        token: <VSub_Name file>
                                        suffix_op: 
                                          (suffix_op.StringUnary
                                            op_id: VOp1_DPound
                                            arg_word: {('*') (Lit_Slash /)}
                                          )
                                        spids: [356 361]
                                      )
                                    }
                                  spids: [355]
                                )
                              ]
                              spids: [353]
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [
                                    (command.Sentence
                                      child: 
                                        (command.Pipeline
                                          children: [
                                            (C {(echo)} {(-n)} {(DQ ($ VSub_DollarName '$processed'))})
                                            (C {(grep)} {(-qF)} 
                                              {(DQ (' ') ($ VSub_DollarName '$base') (' '))}
                                            )
                                          ]
                                          negated: F
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [(command.ControlFlow token:<ControlFlow_Continue continue>)]
                                  spids: [16777215 387]
                                )
                              ]
                              spids: [16777215 393]
                            )
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [
                                    (command.Sentence
                                      child: 
                                        (C {(Lit_Other '[')} 
                                          {(DQ ($ VSub_DollarName '$add_etc_modules'))} {(-a)} {(-L)} {($ VSub_DollarName '$file')} {(-a)} 
                                          {
                                            (DQ 
                                              (word_part.CommandSubPart
                                                command_list: 
                                                  (command.CommandList
                                                    children: [
                                                      (C {(readlink)} {(-f)} 
                                                        {($ VSub_DollarName '$file')}
                                                      )
                                                    ]
                                                  )
                                                left_token: <Left_CommandSub '$('>
                                                spids: [415 421]
                                              )
                                            )
                                          } {(Lit_Other '=')} {(/etc/modules)} {(Lit_Other ']')}
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [
                                    (command.Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (lhs_expr.LhsName name:add_etc_modules spids:[434])
                                          op: Equal
                                          rhs: (word.EmptyWord)
                                          spids: [434]
                                        )
                                      ]
                                      spids: [434]
                                    )
                                  ]
                                  spids: [16777215 431]
                                )
                              ]
                              spids: [16777215 437]
                            )
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:processed spids:[440])
                                  op: Equal
                                  rhs: 
                                    {
                                      (DQ ($ VSub_DollarName '$processed') ($ VSub_DollarName '$base') 
                                        (' ')
                                      )
                                    }
                                  spids: [440]
                                )
                              ]
                              spids: [440]
                            )
                            (C {(echo)} {($ VSub_DollarName '$file')})
                          ]
                          spids: [350 453]
                        )
                      spids: [326 348]
                    )
                  ]
                  spids: [305 456]
                )
              spids: [301 303]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$add_etc_modules'))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(echo)} {(/etc/modules)})]
                  spids: [16777215 471]
                )
              ]
              spids: [16777215 479]
            )
          ]
          spids: [270]
        )
      spids: [266 269]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} 
                  {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(log_action_begin_msg)} {(SQ <'Loading kernel modules'>)})]
          spids: [16777215 499]
        )
      ]
      spids: [16777215 508]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:files spids:[511])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: (command.CommandList children:[(C {(modules_files)})])
                left_token: <Left_CommandSub '$('>
                spids: [512 514]
              )
            }
          spids: [511]
        )
      ]
      spids: [511]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$files'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Pipeline
              children: [
                (C {(grep)} {(-h)} {(SQ <'^[^#]'>)} {($ VSub_DollarName '$files')})
                (command.WhileUntil
                  keyword: <KW_While while>
                  cond: [
                    (command.Sentence
                      child: (C {(read)} {(module)} {(args)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  body: 
                    (command.DoGroup
                      children: [
                        (command.AndOr
                          ops: [Op_DPipe]
                          children: [
                            (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$module'))} {(Lit_Other ']')})
                            (command.ControlFlow
                              token: <ControlFlow_Continue continue>
                            )
                          ]
                        )
                        (C {(load_module)} {(DQ ($ VSub_DollarName '$module'))} 
                          {(DQ ($ VSub_DollarName '$args'))}
                        )
                      ]
                      spids: [553 580]
                    )
                )
              ]
              negated: F
            )
          ]
          spids: [16777215 528]
        )
      ]
      spids: [16777215 582]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} 
                  {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(log_action_end_msg)} {(0)})]
          spids: [16777215 600]
        )
      ]
      spids: [16777215 607]
    )
  ]
)