(command.CommandList
  children: [
    (command.Assignment
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:PATH)
          op: Equal
          rhs: {(/sbin) (Lit_Other ':') (/bin)}
        )
      ]
    )
    (command.Assignment
      pairs: [(assign_pair lhs:(lhs_expr.LhsName name:TTYGRP) op:Equal rhs:{(5)})]
    )
    (command.Assignment
      pairs: [(assign_pair lhs:(lhs_expr.LhsName name:TTYMODE) op:Equal rhs:{(620)})]
    )
    (command.AndOr
      ops: [Op_DAmp]
      children: [
        (C {(Lit_LBracket '[')} {(-f)} {(/etc/default/devpts)} {(Lit_RBracket ']')})
        (C {(.)} {(/etc/default/devpts)})
      ]
    )
    (command.Assignment
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:KERNEL)
          op: Equal
          rhs: 
            {
              (DQ 
                (word_part.CommandSub
                  left_token: <Left_DollarParen '$('>
                  command_list: (command.CommandList children:[(C {(uname)} {(-s)})])
                )
              )
            }
        )
      ]
    )
    (C {(.)} {(/lib/lsb/init-functions)})
    (C {(.)} {(/lib/init/vars.sh)})
    (C {(.)} {(/lib/init/tmpfs.sh)})
    (C {(.)} {(/lib/init/mount-functions.sh)})
    (command.FuncDef
      name: mount_filesystems
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:MNTMODE)
                  op: Equal
                  rhs: {(DQ ($ VSub_Number '$1'))}
                )
              ]
            )
            (C {(mount_shm)} {(DQ ($ VSub_DollarName '$MNTMODE'))})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$KERNEL'))} {(Lit_Other '=')} 
                      {(Linux)} {(Lit_RBracket ']')}
                    )
                  ]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (C {(Lit_LBracket '[')} {(KW_Bang '!')} {(-d)} {(/dev/pts)} 
                              {(Lit_RBracket ']')}
                            )
                          ]
                          action: [
                            (C {(mkdir)} {(--mode) (Lit_Other '=') (755)} {(/dev/pts)})
                            (command.AndOr
                              ops: [Op_DAmp]
                              children: [
                                (C {(Lit_LBracket '[')} {(-x)} {(/sbin/restorecon)} {(Lit_RBracket ']')})
                                (C {(/sbin/restorecon)} {(/dev/pts)})
                              ]
                            )
                          ]
                        )
                      ]
                    )
                    (C {(domount)} {(DQ ($ VSub_DollarName '$MNTMODE'))} {(devpts)} {(DQ )} {(/dev/pts)} 
                      {(devpts)} {(DQ ('-onoexec,nosuid,gid=') ($ VSub_DollarName '$TTYGRP') (',mode=') ($ VSub_DollarName '$TTYMODE'))}
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (command.Case
      to_match: {(DQ ($ VSub_Number '$1'))}
      arms: [
        (case_arm
          pat_list: [{(DQ )}]
          action: [
            (command.Simple
              words: [
                {(echo)}
                {(DQ ("Warning: mountdevsubfs should be called with the 'start' argument."))}
              ]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (C {(mount_filesystems)} {(mount_noupdate)})
          ]
        )
        (case_arm pat_list:[{(start)}] action:[(C {(mount_filesystems)} {(mount_noupdate)})])
        (case_arm
          pat_list: [{(restart)} {(reload)} {(force-reload)}]
          action: [(C {(mount_filesystems)} {(remount)})]
        )
        (case_arm pat_list:[{(stop)} {(status)}])
        (case_arm
          pat_list: [{(Lit_Star '*')}]
          action: [
            (command.Simple
              words: [{(echo)} {(DQ ('Usage: mountdevsubfs [start|stop]'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)})
          ]
        )
      ]
    )
  ]
)