(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:PATH)
          rhs: 
            {(/usr/local/sbin) (Lit_Other ":") (/usr/local/bin) (Lit_Other ":") (/sbin) (Lit_Other ":") 
              (/bin) (Lit_Other ":") (/usr/sbin) (Lit_Other ":") (/usr/bin)
            }
          spids: [62]
        )
      ]
      spids: [62]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:NAME) rhs:{(hddtemp)} spids:[75])]
      spids: [75]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DAEMON)
          rhs: {(/usr/sbin/) ($ VSub_Name "$NAME")}
          spids: [78]
        )
      ]
      spids: [78]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DESC)
          rhs: {(DQ ("disk temperature monitoring daemon"))}
          spids: [82]
        )
      ]
      spids: [82]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DISKS)
          rhs: {(DQ ("/dev/hd[a-z] /dev/hd[a-z][a-z]"))}
          spids: [88]
        )
      ]
      spids: [88]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DISKS)
          rhs: {(DQ ($ VSub_Name "$DISKS") (" /dev/sd[a-z] /dev/sd[a-z][a-z]"))}
          spids: [93]
        )
      ]
      spids: [93]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DISKS)
          rhs: {(DQ ($ VSub_Name "$DISKS") (" /dev/sr[a-z] /dev/sr[a-z][a-z]"))}
          spids: [99]
        )
      ]
      spids: [99]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:INTERFACE) rhs:{(DQ (0.0.0.0))} spids:[105])]
      spids: [105]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:PORT) rhs:{(DQ (7634))} spids:[110])]
      spids: [110]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:SEPARATOR) rhs:{(DQ ("|"))} spids:[115])]
      spids: [115]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:RUN_SYSLOG) rhs:{(DQ (0))} spids:[120])]
      spids: [120]
    )
    (AndOr
      children: [
        (C {(Lit_Other "[")} {(-r)} {(/etc/default/hddtemp)} {(Lit_Other "]")})
        (C {(.)} {(/etc/default/hddtemp)})
      ]
      op_id: Op_DAmp
    )
    (If
      arms: [
        (if_arm
          cond: 
            (Sentence
              command: 
                (AndOr
                  children: [
                    (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Name "$RUN_SYSLOG"))} {(Lit_Other "]")})
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_SYSLOG"))} 
                      {(KW_Bang "!") (Lit_Other "=")} {(DQ (0))} {(Lit_Other "]")}
                    )
                  ]
                  op_id: Op_DAmp
                )
              terminator: <Op_Semi ";">
            )
          action: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LeftVar name:SYSLOG_ARG)
                  rhs: {(DQ ("-S ") ($ VSub_Name "$RUN_SYSLOG"))}
                  spids: [178]
                )
              ]
              spids: [178]
            )
          spids: [-1 175]
        )
      ]
      spids: [-1 184]
    )
    (If
      arms: [
        (if_arm
          cond: 
            (Sentence
              command: 
                (AndOr
                  children: [
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_DAEMON"))} {(Lit_Other "=")} 
                      {(DQ (true))} {(Lit_Other "]")}
                    )
                    (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_DAEMON"))} {(Lit_Other "=")} {(DQ (yes))} 
                      {(Lit_Other "]")}
                    )
                  ]
                  op_id: Op_DPipe
                )
              terminator: <Op_Semi ";">
            )
          action: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LeftVar name:DAEMON_ARG)
                  rhs: 
                    {
                      (DQ ("-d -l ") ($ VSub_Name "$INTERFACE") (" -p ") ($ VSub_Name "$PORT") (" -s ") 
                        ($ VSub_Name "$SEPARATOR")
                      )
                    }
                  spids: [224]
                )
              ]
              spids: [224]
            )
          spids: [-1 221]
        )
      ]
      spids: [-1 234]
    )
    (AndOr
      children: [
        (C {(Lit_Other "[")} {(-x)} {(DQ ($ VSub_Name "$DAEMON"))} {(Lit_Other "]")})
        (C {(exit)} {(0)})
      ]
      op_id: Op_DPipe
    )
    (C {(.)} {(/lib/lsb/init-functions)})
    (Case
      to_match: {(DQ ($ VSub_Number "$1"))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: 
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (AndOr
                          children: [
                            (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Name "$DAEMON_ARG"))} 
                              {(Lit_Other "]")}
                            )
                            (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Name "$SYSLOG_ARG"))} 
                              {(Lit_Other "]")}
                            )
                          ]
                          op_id: Op_DPipe
                        )
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (C {(log_daemon_msg)} {(DQ ("Starting ") ($ VSub_Name "$DESC"))} 
                          {(DQ ($ VSub_Name "$NAME") (":"))}
                        )
                        (AndOr
                          children: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LeftVar name:CDROMS_LIST)
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (SimpleCommand
                                            words: [
                                              {(sed)}
                                              {(-ne)}
                                              {
                                                (SQ <"s/^drive name:\\t\\+\\(.*\\)$/ \\/dev\\/\\1/p">)
                                              }
                                              {(/proc/sys/dev/cdrom/info)}
                                            ]
                                            redirects: [
                                              (Redirect
                                                op_id: Redir_Great
                                                arg_word: {(/dev/null)}
                                                fd: 2
                                                spids: [330]
                                              )
                                            ]
                                          )
                                        spids: [319 332]
                                      )
                                    }
                                  spids: [318]
                                )
                              ]
                              spids: [318]
                            )
                            (C {(Lit_Other ":")})
                          ]
                          op_id: Op_DPipe
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LeftVar name:CDROMS_LIST)
                              rhs: 
                                {
                                  (DQ ($ VSub_Name "$CDROMS_LIST") (" ") 
                                    (CommandSubPart
                                      command_list: 
                                        (Pipeline
                                          children: [
                                            (C {(grep)} {(-sl)} {(SQ <"^ide-scsi ">)} 
                                              {(/proc/ide/hd) (Lit_Other "*") (/driver)}
                                            )
                                            (C {(awk)} {(-F)} {(/)} {(SQ <"{ print \"/dev/\"$4 }">)})
                                          ]
                                          negated: False
                                        )
                                      spids: [343 367]
                                    )
                                  )
                                }
                              spids: [339]
                            )
                          ]
                          spids: [339]
                        )
                        (ForEach
                          iter_name: disk
                          iter_words: [{($ VSub_Name "$DISKS")}]
                          do_arg_iter: False
                          body: 
                            (DoGroup
                              child: 
                                (CommandList
                                  children: [
                                    (AndOr
                                      children: [
                                        (Pipeline
                                          children: [
                                            (C {(echo)} {($ VSub_Name "$CDROMS_LIST")})
                                            (C {(grep)} {(-wq)} {($ VSub_Name "$disk")})
                                          ]
                                          negated: False
                                        )
                                        (C {(continue)})
                                      ]
                                      op_id: Op_DAmp
                                    )
                                    (AndOr
                                      children: [
                                        (Pipeline
                                          children: [
                                            (C {(echo)} {($ VSub_Name "$DISKS_NOPROBE")})
                                            (C {(grep)} {(-wq)} {($ VSub_Name "$disk")})
                                          ]
                                          negated: False
                                        )
                                        (C {(continue)})
                                      ]
                                      op_id: Op_DAmp
                                    )
                                    (If
                                      arms: [
                                        (if_arm
                                          cond: 
                                            (Sentence
                                              command: 
                                                (Pipeline
                                                  children: [
                                                    (SimpleCommand
                                                      words: [
                                                        {($ VSub_Name "$DAEMON")}
                                                        {(-wn)}
                                                        {($ VSub_Name "$OPTIONS")}
                                                        {($ VSub_Name "$disk")}
                                                      ]
                                                      redirects: [
                                                        (Redirect
                                                          op_id: Redir_Great
                                                          arg_word: {(/dev/null)}
                                                          fd: 2
                                                          spids: [428]
                                                        )
                                                      ]
                                                    )
                                                    (C {(grep)} {(-q)} {(SQ <"^[0-9]\\+$">)})
                                                  ]
                                                  negated: False
                                                )
                                              terminator: <Op_Semi ";">
                                            )
                                          action: 
                                            (Sentence
                                              command: 
                                                (Assignment
                                                  keyword: Assign_None
                                                  pairs: [
                                                    (assign_pair
                                                      lhs: (LeftVar name:DISKS_LIST)
                                                      rhs: 
                                                        {
                                                          (DQ ($ VSub_Name "$DISKS_LIST") (" ") 
                                                            ($ VSub_Name "$disk")
                                                          )
                                                        }
                                                      spids: [446]
                                                    )
                                                  ]
                                                  spids: [446]
                                                )
                                              terminator: <Op_Semi ";">
                                            )
                                          spids: [-1 443]
                                        )
                                      ]
                                      spids: [-1 455]
                                    )
                                  ]
                                )
                              spids: [381 458]
                            )
                          spids: [376 379]
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: 
                                    (AndOr
                                      children: [
                                        (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Name "$DISKS_LIST"))} 
                                          {(Lit_Other "]")}
                                        )
                                        (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Name "$DISKS_NOPROBE"))} 
                                          {(Lit_Other "]")}
                                        )
                                      ]
                                      op_id: Op_DPipe
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (CommandList
                                  children: [
                                    (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--exec)} 
                                      {($ VSub_Name "$DAEMON")} {(--)} {($ VSub_Name "$DAEMON_ARG")} {($ VSub_Name "$SYSLOG_ARG")} {($ VSub_Name "$OPTIONS")} 
                                      {($ VSub_Name "$DISKS_NOPROBE")} {($ VSub_Name "$DISKS_LIST")}
                                    )
                                    (Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (LeftVar name:ret)
                                          rhs: {($ VSub_QMark "$?")}
                                          spids: [513]
                                        )
                                      ]
                                      spids: [513]
                                    )
                                    (C {(log_progress_msg)} 
                                      {
                                        (DQ ($ VSub_Name "$DISKS_NOPROBE") ($ VSub_Name "$DISKS_LIST"))
                                      }
                                    )
                                    (C {(log_end_msg)} {($ VSub_Name "$ret")})
                                  ]
                                )
                              spids: [-1 487]
                            )
                          ]
                          else_action: 
                            (CommandList
                              children: [
                                (C {(log_progress_msg)} 
                                  {(DQ ("no disks with monitoring capability were found."))}
                                )
                                (C {(log_end_msg)} {(0)})
                              ]
                            )
                          spids: [530 545]
                        )
                      ]
                    )
                  spids: [-1 302]
                )
              ]
              spids: [-1 548]
            )
          spids: [268 269 551 -1]
        )
        (case_arm
          pat_list: [{(stop)}]
          action: 
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (AndOr
                          children: [
                            (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_DAEMON"))} {(Lit_Other "=")} 
                              {(DQ (true))} {(Lit_Other "]")}
                            )
                            (AndOr
                              children: [
                                (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_DAEMON"))} 
                                  {(Lit_Other "=")} {(DQ (yes))} {(Lit_Other "]")}
                                )
                                (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUN_SYSLOG"))} 
                                  {(KW_Bang "!") (Lit_Other "=")} {(DQ (0))} {(Lit_Other "]")}
                                )
                              ]
                              op_id: Op_DPipe
                            )
                          ]
                          op_id: Op_DPipe
                        )
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (C {(log_daemon_msg)} {(DQ ("Stopping ") ($ VSub_Name "$DESC"))} 
                          {(DQ ($ VSub_Name "$NAME"))}
                        )
                        (C {(start-stop-daemon)} {(--stop)} {(--oknodo)} {(--exec)} 
                          {($ VSub_Name "$DAEMON")} {(--retry)} {(30)}
                        )
                        (C {(log_end_msg)} {($ VSub_QMark "$?")})
                      ]
                    )
                  spids: [-1 613]
                )
              ]
              spids: [-1 648]
            )
          spids: [554 555 651 -1]
        )
        (case_arm
          pat_list: [{(force-reload)} {(reload)}]
          action: (C {(exit)} {(3)})
          spids: [654 657 665 -1]
        )
        (case_arm
          pat_list: [{(restart)}]
          action: 
            (AndOr
              children: [(C {($ VSub_Number "$0")} {(stop)}) (C {($ VSub_Number "$0")} {(start)})]
              op_id: Op_DAmp
            )
          spids: [668 669 683 -1]
        )
        (case_arm
          pat_list: [{(status)}]
          action: 
            (CommandList
              children: [
                (C {(status_of_proc)} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$NAME")})
                (C {(exit)} {($ VSub_QMark "$?")})
              ]
            )
          spids: [686 687 702 -1]
        )
        (case_arm
          pat_list: [{(Lit_Other "*")}]
          action: 
            (CommandList
              children: [
                (SimpleCommand
                  words: [
                    {(echo)}
                    {
                      (DQ ("Usage: /etc/init.d/") ($ VSub_Name "$NAME") 
                        (" {start|stop|restart|status}")
                      )
                    }
                  ]
                  redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[717])]
                )
                (C {(exit)} {(1)})
              ]
            )
          spids: [705 706 726 -1]
        )
      ]
      spids: [259 265 728]
    )
    (C {(exit)} {(0)})
  ]
)