(command.CommandList
  children: [
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (command.SimpleCommand
          words: [{(which)} {(grub-editenv)}]
          redirects: [
            (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})
            (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})
          ]
        )
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
      ]
    )
    (C {(.)} {(/lib/init/vars.sh)})
    (C {(.)} {(/lib/lsb/init-functions)})
    (command.Case
      to_match: {($ VSub_Number '$1')}
      arms: [
        (case_arm
          pat_list: [{(start)} {(restart)} {(force-reload)}]
          action: [
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} 
                  {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')}
                )
                (C {(log_action_msg)} {(DQ ('Recording successful boot for GRUB'))})
              ]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(Lit_Other '[')} {(-s)} {(/boot/grub/grubenv)} {(Lit_Other ']')})
                (C {(rm)} {(-f)} {(/boot/grub/grubenv)})
              ]
            )
            (C {(mkdir)} {(-p)} {(/boot/grub)})
            (C {(grub-editenv)} {(/boot/grub/grubenv)} {(unset)} {(recordfail)})
            (command.AndOr
              ops: [Op_DAmp]
              children: [
                (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} 
                  {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')}
                )
                (C {(log_end_msg)} {($ VSub_QMark '$?')})
              ]
            )
          ]
          spids: [80 85 163 16777215]
        )
        (case_arm pat_list:[{(stop)}] spids:[166 167 170 16777215])
        (case_arm
          pat_list: [{(status)}]
          action: [(command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})]
          spids: [173 174 182 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (command.SimpleCommand
              words: [
                {(echo)}
                {(DQ ('Usage: ') ($ VSub_Number '$0') (' {start|stop|status|restart|force-reload}'))}
              ]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)})
          ]
          spids: [185 186 206 16777215]
        )
      ]
      spids: [73 77 208]
    )
    (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
  ]
)