(CommandList
  children: [
    (C {(.)} {(/lib/lsb/init-functions)})
    (AndOr
      children: [
        (C {(Lit_Other "[")} {(-f)} {(/etc/default/rcS)} {(Lit_Other "]")})
        (C {(.)} {(/etc/default/rcS)})
      ]
      op_id: Op_DAmp
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:PATH)
          rhs: {(/bin) (Lit_Other ":") (/usr/bin) (Lit_Other ":") (/sbin) (Lit_Other ":") (/usr/sbin)}
          spids: [51]
        )
      ]
      spids: [51]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:DAEMON) rhs:{(/usr/sbin/fancontrol)} spids:[60])]
      spids: [60]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:DESC) rhs:{(DQ ("fan speed regulator"))} spids:[63])]
      spids: [63]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:NAME) rhs:{(DQ (fancontrol))} spids:[68])]
      spids: [68]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:PIDFILE) rhs:{(/var/run/fancontrol.pid)} spids:[73])]
      spids: [73]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:CONF) rhs:{(/etc/fancontrol)} spids:[76])]
      spids: [76]
    )
    (AndOr
      children: [(C {(test)} {(-x)} {($ VSub_Name "$DAEMON")}) (C {(exit)} {(0)})]
      op_id: Op_DPipe
    )
    (Case
      to_match: {(DQ ($ VSub_Number "$1"))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: 
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$CONF")} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (If
                      arms: [
                        (if_arm
                          cond: 
                            (Sentence
                              command: 
                                (SimpleCommand
                                  words: [{($ VSub_Name "$DAEMON")} {(--check)} {($ VSub_Name "$CONF")}]
                                  redirects: [
                                    (Redirect
                                      op_id: Redir_Great
                                      arg_word: {(/dev/null)}
                                      fd: 1
                                      spids: [129]
                                    )
                                    (Redirect
                                      op_id: Redir_Great
                                      arg_word: {(/dev/null)}
                                      fd: 2
                                      spids: [132]
                                    )
                                  ]
                                )
                              terminator: <Op_Semi ";">
                            )
                          action: 
                            (CommandList
                              children: [
                                (C {(log_daemon_msg)} {(DQ ("Starting ") ($ VSub_Name "$DESC"))} 
                                  {(DQ ($ VSub_Name "$NAME"))}
                                )
                                (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--background)} 
                                  {(--pidfile)} {($ VSub_Name "$PIDFILE")} {(--startas)} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$CONF")}
                                )
                                (C {(log_end_msg)} {($ VSub_QMark "$?")})
                              ]
                            )
                          spids: [-1 137]
                        )
                      ]
                      else_action: 
                        (C {(log_failure_msg)} 
                          {
                            (DQ 
                              (
"Not starting fancontrol, broken configuration file; please re-run pwmconfig."
                              )
                            )
                          }
                        )
                      spids: [176 186]
                    )
                  spids: [-1 118]
                )
              ]
              else_action: 
                (If
                  arms: [
                    (if_arm
                      cond: 
                        (Sentence
                          command: 
                            (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} 
                              {(KW_Bang "!") (Lit_Other "=")} {(no)} {(Lit_Other "]")}
                            )
                          terminator: <Op_Semi ";">
                        )
                      action: 
                        (C {(log_warning_msg)} {(DQ ("Not starting fancontrol; run pwmconfig first."))})
                      spids: [-1 208]
                    )
                  ]
                  spids: [-1 218]
                )
              spids: [189 221]
            )
          spids: [102 103 224 -1]
        )
        (case_arm
          pat_list: [{(stop)}]
          action: 
            (CommandList
              children: [
                (C {(log_daemon_msg)} {(DQ ("Stopping ") ($ VSub_Name "$DESC"))} 
                  {(DQ ($ VSub_Name "$NAME"))}
                )
                (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--pidfile)} {($ VSub_Name "$PIDFILE")} 
                  {(--oknodo)} {(--startas)} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$CONF")}
                )
                (C {(rm)} {(-f)} {($ VSub_Name "$PIDFILE")})
                (C {(log_end_msg)} {($ VSub_QMark "$?")})
              ]
            )
          spids: [227 228 274 -1]
        )
        (case_arm
          pat_list: [{(restart)}]
          action: 
            (CommandList
              children: [
                (C {($ VSub_Number "$0")} {(stop)})
                (C {(sleep)} {(3)})
                (C {($ VSub_Number "$0")} {(start)})
              ]
            )
          spids: [277 278 296 -1]
        )
        (case_arm
          pat_list: [{(force-reload)}]
          action: 
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(start-stop-daemon)} {(--stop)} {(--test)} {(--quiet)} {(--pidfile)} 
                          {($ VSub_Name "$PIDFILE")} {(--startas)} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$CONF")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  action: (C {($ VSub_Number "$0")} {(restart)})
                  spids: [-1 325]
                )
              ]
              spids: [-1 333]
            )
          spids: [299 300 336 -1]
        )
        (case_arm
          pat_list: [{(status)}]
          action: 
            (AndOr
              children: [
                (C {(status_of_proc)} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$NAME")} 
                  {($ VSub_Name "$CONF")}
                )
                (AndOr
                  children: [(C {(exit)} {(0)}) (C {(exit)} {($ VSub_QMark "$?")})]
                  op_id: Op_DPipe
                )
              ]
              op_id: Op_DAmp
            )
          spids: [339 340 364 -1]
        )
        (case_arm
          pat_list: [{(Lit_Other "*")}]
          action: 
            (CommandList
              children: [
                (C {(log_success_msg)} 
                  {(DQ ("Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload|status}"))}
                )
                (C {(exit)} {(1)})
              ]
            )
          spids: [367 368 383 -1]
        )
      ]
      spids: [93 99 385]
    )
    (C {(exit)} {(0)})
  ]
)