(command.CommandList
  children: [
    (C {<set>} {<-e>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: 
            {<'/usr/local/sbin'> <Id.Lit_Colon ':'> <'/usr/local/bin'> <Id.Lit_Colon ':'> <'/sbin'> 
              <Id.Lit_Colon ':'> <'/bin'> <Id.Lit_Colon ':'> <'/usr/sbin'> <Id.Lit_Colon ':'> <'/usr/bin'>
            }
          spids: [41]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NAME='> name:NAME)
          op: assign_op.Equal
          rhs: {(DQ <unattended-upgrades-shutdown>)}
          spids: [55]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DESC='> name:DESC)
          op: assign_op.Equal
          rhs: {(DQ <'unattended package upgrades shutdown'>)}
          spids: [60]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SCRIPTNAME='> name:SCRIPTNAME)
          op: assign_op.Equal
          rhs: {(DQ <'/etc/init.d/'> ($ Id.VSub_DollarName NAME))}
          spids: [65]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SHUTDOWN_HELPER='> name:SHUTDOWN_HELPER)
          op: assign_op.Equal
          rhs: {(DQ <'/usr/share/unattended-upgrades/unattended-upgrade-shutdown'>)}
          spids: [71]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-x>} {<'/usr/bin/python3'>} {<Id.Lit_RBracket ']'>})
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PYTHON='> name:PYTHON)
                  op: assign_op.Equal
                  rhs: {<python3>}
                  spids: [91]
                )
              ]
              redirects: []
            )
          ]
          spids: [77 88]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PYTHON='> name:PYTHON)
              op: assign_op.Equal
              rhs: {<python>}
              spids: [97]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (C {<.>} {<'/lib/init/vars.sh'>})
    (C {<.>} {<'/lib/lsb/init-functions'>})
    (command.Case
      to_match: {(DQ ($ Id.VSub_Number 1))}
      arms: [
        (case_arm
          pat_list: [{<start>} {<restart>} {<force-reload>} {<status>}]
          action: []
          spids: [130 137 144 -1]
        )
        (case_arm
          pat_list: [{<stop>}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-e>} {($ Id.VSub_DollarName SHUTDOWN_HELPER)} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} 
                          {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <no>)} {<Id.Lit_RBracket ']'>}
                        )
                        (C {<log_action_begin_msg>} 
                          {(DQ <'Checking for running '> ($ Id.VSub_DollarName DESC))}
                        )
                      ]
                    )
                    (C {($ Id.VSub_DollarName PYTHON)} {($ Id.VSub_DollarName SHUTDOWN_HELPER)})
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} 
                          {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <no>)} {<Id.Lit_RBracket ']'>}
                        )
                        (C {<log_action_end_msg>} {($ Id.VSub_QMark '?')} 
                          {(DQ ($ Id.VSub_DollarName NAME))}
                        )
                      ]
                    )
                  ]
                  spids: [150 161]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
          spids: [146 147 223 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (command.Simple
              words: [
                {<echo>}
                {
                  (DQ <'Usage: '> ($ Id.VSub_DollarName SCRIPTNAME) 
                    <' {start|stop|status|restart|force-reload}'>
                  )
                }
              ]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              more_env: []
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<3>})
          ]
          spids: [225 226 246 -1]
        )
      ]
      redirects: []
    )
    (C {<Id.Lit_Colon ':'>})
  ]
)