(command.CommandList
  children: [
    (C {(set)} {(-e)})
    (command.AndOr
      ops: [Op_DPipe]
      children: [
        (C {(test)} {(-f)} {(/bin/setupcon)})
        (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(Lit_LBracket '[')} {(-f)} {(/etc/default/locale)} {(Lit_RBracket ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(.)} {(/etc/default/locale)}) (C {(export)} {(LANG)})]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(Lit_LBracket '[')} {(-f)} {(/lib/lsb/init-functions)} {(Lit_RBracket ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(.)} {(/lib/lsb/init-functions)})]
        )
      ]
      else_action: [
        (command.FuncDef
          name: log_action_begin_msg
          body: (command.BraceGroup children:[(C {(echo)} {(-n)} {(DQ ($ VSub_At '$@') ('... '))})])
        )
        (command.FuncDef
          name: log_action_end_msg
          body: 
            (command.BraceGroup
              children: [
                (command.If
                  arms: [
                    (if_arm
                      cond: [
                        (command.Sentence
                          child: 
                            (C {(Lit_LBracket '[')} {(DQ ($ VSub_Number '$1'))} {(-eq)} {(0)} 
                              {(Lit_RBracket ']')}
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [(C {(echo)} {(done.)})]
                    )
                  ]
                  else_action: [(C {(echo)} {(failed.)})]
                )
              ]
            )
        )
      ]
    )
    (command.Case
      to_match: {(DQ ($ VSub_Number '$1'))}
      arms: [
        (case_arm pat_list:[{(stop)} {(status)}])
        (case_arm
          pat_list: [{(start)} {(force-reload)} {(restart)} {(reload)}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.AndOr
                          ops: [Op_DPipe]
                          children: [
                            (command.Pipeline
                              children: [
                                (command.Simple
                                  words: [{(type)} {(plymouth)}]
                                  redirects: [
                                    (redir.Redir
                                      op: <Redir_Great '>'>
                                      fd: 16777215
                                      arg_word: {(/dev/null)}
                                    )
                                  ]
                                )
                              ]
                              negated: T
                            )
                            (command.Pipeline
                              children: [(C {(plymouth)} {(--ping)})]
                              negated: T
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(log_action_begin_msg)} {(DQ ('Setting preliminary keymap'))})
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.Simple
                                  words: [{(setupcon)} {(-k)} {(--force)}]
                                  redirects: [
                                    (redir.Redir
                                      op: <Redir_Great '2>'>
                                      fd: 2
                                      arg_word: {(/dev/null)}
                                    )
                                  ]
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [(C {(log_action_end_msg)} {(0)})]
                        )
                      ]
                      else_action: [(C {(log_action_end_msg)} {($ VSub_QMark '$?')})]
                    )
                  ]
                )
              ]
            )
          ]
        )
        (case_arm
          pat_list: [{(Lit_Star '*')}]
          action: [
            (C {(echo)} 
              {
                (SQ 
                  <
'Usage: /etc/init.d/keyboard-setup {start|reload|restart|force-reload|stop|status}'
                  >
                )
              }
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
        )
      ]
    )
    (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
  ]
)