(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: {<'/etc'> <Id.Lit_Colon ':'> <'/bin'>}
          spids: [96]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RDCD='> name:RDCD)
          op: assign_op.Equal
          rhs: {(DQ <'/usr/lib/sndrd'>)}
          spids: [101]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RDCSYNCD='> name:RDCSYNCD)
          op: assign_op.Equal
          rhs: {(DQ <'/usr/lib/sndrsyncd'>)}
          spids: [106]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE)
          op: assign_op.Equal
          rhs: {(DQ <'Usage: '> ($ Id.VSub_Number 0) <' start'>)}
          spids: [111]
        )
      ]
      redirects: []
    )
    (C {<.>} {<'/lib/svc/share/smf_include.sh'>})
    (command.Case
      to_match: {(DQ ($ Id.VSub_Number 1))}
      arms: [
        (case_arm
          pat_list: [{(SQ <start>)}]
          action: [
            (C {<echo>} {(DQ <'Completing SNDR startup:'> <Id.Lit_BadBackslash '\\'> <c>)})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-f>} {(${ Id.VSub_Name RDCD)} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'Cannot find '> (${ Id.VSub_Name RDCD) <.> <Id.Lit_BadBackslash '\\'> 
                            <'nSNDR services unavailable.'>
                          )
                        }
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'/dev/console'>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {($ Id.VSub_DollarName SMF_EXIT_MON_OFFLINE)}
                    )
                  ]
                  spids: [161 176]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.Pipeline
              children: [
                (C {<ps>} {<-e>})
                (command.Simple
                  words: [{<grep>} {<sndrd>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                    (redir
                      op: <Id.Redir_GreatAnd '2>&'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<1>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
              negated: F
              stderr_indices: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-ne>} {<0>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {(${ Id.VSub_Name RDCD)})
                    (C {<echo>} {(DQ <' sndrd'> <Id.Lit_BadBackslash '\\'> <c>)})
                  ]
                  spids: [223 236]
                )
              ]
              else_action: [
                (C {<echo>} {(DQ <' sndrd already enabled'> <Id.Lit_BadBackslash '\\'> <c>)})
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-f>} {(${ Id.VSub_Name RDCSYNCD)} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <Id.Lit_BadBackslash '\\'> <'nCannot find '> (${ Id.VSub_Name RDCSYNCD) 
                            <.> <Id.Lit_BadBackslash '\\'> <'nSNDR start aborted.'>
                          )
                        }
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'/dev/console'>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {($ Id.VSub_DollarName SMF_EXIT_MON_OFFLINE)}
                    )
                  ]
                  spids: [282 297]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.Pipeline
              children: [
                (C {<ps>} {<-e>})
                (command.Simple
                  words: [{<grep>} {<sndrsyn>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                    (redir
                      op: <Id.Redir_GreatAnd '2>&'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<1>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
              negated: F
              stderr_indices: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-ne>} {<0>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {(${ Id.VSub_Name RDCSYNCD)})
                    (C {<echo>} {(DQ <' sndrsyncd'> <Id.Lit_BadBackslash '\\'> <c>)})
                  ]
                  spids: [345 358]
                )
              ]
              else_action: [
                (C {<echo>} {(DQ <' sndrsyncd already running'> <Id.Lit_BadBackslash '\\'> <c>)})
              ]
              redirects: []
            )
            (C {<echo>} {(DQ <' done'>)})
          ]
          spids: [132 135 398 -1]
        )
        (case_arm pat_list:[{(SQ <stop>)}] action:[] spids:[400 403 410 -1])
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (C {<echo>} {($ Id.VSub_DollarName USAGE)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [412 413 426 -1]
        )
      ]
      redirects: []
    )
    (command.ControlFlow
      token: <Id.ControlFlow_Exit exit>
      arg_word: {($ Id.VSub_DollarName SMF_EXIT_OK)}
    )
  ]
)