(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: [43]
        )
      ]
      spids: [43]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:DAEMON) rhs:{(/usr/sbin/saned)} spids:[56])]
      spids: [56]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:NAME) rhs:{(saned)} spids:[59])]
      spids: [59]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DESC)
          rhs: {(DQ ("SANE network scanner server"))}
          spids: [62]
        )
      ]
      spids: [62]
    )
    (AndOr
      children: [(C {(test)} {(-x)} {($ VSub_Name "$DAEMON")}) (C {(exit)} {(0)})]
      op_id: Op_DPipe
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:RUN) rhs:{(no)} spids:[81])]
      spids: [81]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LeftVar name:RUN_AS_USER) rhs:{(saned)} spids:[84])]
      spids: [84]
    )
    (If
      arms: [
        (if_arm
          cond: 
            (Sentence
              command: (C {(Lit_Other "[")} {(-f)} {(/etc/default/saned)} {(Lit_Other "]")})
              terminator: <Op_Semi ";">
            )
          action: (C {(.)} {(/etc/default/saned)})
          spids: [-1 103]
        )
      ]
      spids: [-1 110]
    )
    (If
      arms: [
        (if_arm
          cond: 
            (Sentence
              command: 
                (C {(Lit_Other "[")} {(DQ (x) ($ VSub_Name "$RUN"))} {(KW_Bang "!") (Lit_Other "=")} 
                  {(DQ (xyes))} {(Lit_Other "]")}
                )
              terminator: <Op_Semi ";">
            )
          action: 
            (CommandList
              children: [
                (C {(echo)} {(DQ ($ VSub_Name "$NAME") (" disabled; edit /etc/default/saned"))})
                (C {(exit)} {(0)})
              ]
            )
          spids: [-1 133]
        )
      ]
      spids: [-1 148]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LeftVar name:DAEMON_OPTS)
          rhs: {(DQ ("-a ") ($ VSub_Name "$RUN_AS_USER"))}
          spids: [151]
        )
      ]
      spids: [151]
    )
    (C {(set)} {(-e)})
    (Case
      to_match: {(DQ ($ VSub_Number "$1"))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: 
            (CommandList
              children: [
                (C {(echo)} {(-n)} {(DQ ("Starting ") ($ VSub_Name "$DESC") (": "))})
                (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--pidfile)} 
                  {(/var/run/) ($ VSub_Name "$NAME") (.pid)} {(--exec)} {($ VSub_Name "$DAEMON")} {(--)} {($ VSub_Name "$DAEMON_OPTS")}
                )
                (C {(echo)} {(DQ ($ VSub_Name "$NAME") (.))})
              ]
            )
          spids: [172 173 218 -1]
        )
        (case_arm
          pat_list: [{(stop)}]
          action: 
            (CommandList
              children: [
                (C {(echo)} {(-n)} {(DQ ("Stopping ") ($ VSub_Name "$DESC") (": "))})
                (C {(start-stop-daemon)} {(--stop)} {(--oknodo)} {(--quiet)} {(--pidfile)} 
                  {(/var/run/) ($ VSub_Name "$NAME") (.pid)} {(--exec)} {($ VSub_Name "$DAEMON")}
                )
                (C {(echo)} {(DQ ($ VSub_Name "$NAME") (.))})
              ]
            )
          spids: [221 222 265 -1]
        )
        (case_arm
          pat_list: [{(force-reload)}]
          action: 
            (AndOr
              children: [
                (C {(start-stop-daemon)} {(--stop)} {(--test)} {(--quiet)} {(--pidfile)} 
                  {(/var/run/) ($ VSub_Name "$NAME") (.pid)} {(--exec)} {($ VSub_Name "$DAEMON")}
                )
                (AndOr
                  children: [(C {($ VSub_Number "$0")} {(restart)}) (C {(exit)} {(0)})]
                  op_id: Op_DPipe
                )
              ]
              op_id: Op_DAmp
            )
          spids: [268 269 313 -1]
        )
        (case_arm
          pat_list: [{(restart)}]
          action: 
            (CommandList
              children: [
                (C {(echo)} {(-n)} {(DQ ("Restarting ") ($ VSub_Name "$DESC") (": "))})
                (C {(start-stop-daemon)} {(--stop)} {(--oknodo)} {(--quiet)} {(--pidfile)} 
                  {(/var/run/) ($ VSub_Name "$NAME") (.pid)} {(--exec)} {($ VSub_Name "$DAEMON")}
                )
                (C {(sleep)} {(1)})
                (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--pidfile)} 
                  {(/var/run/) ($ VSub_Name "$NAME") (.pid)} {(--exec)} {($ VSub_Name "$DAEMON")} {(--)} {($ VSub_Name "$DAEMON_OPTS")}
                )
                (C {(echo)} {(DQ ($ VSub_Name "$NAME") (.))})
              ]
            )
          spids: [316 317 388 -1]
        )
        (case_arm
          pat_list: [{(status)}]
          action: 
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(Lit_Other "[")} {(-s)} {(/var/run/) ($ VSub_Name "$NAME") (.pid)} 
                          {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LeftVar name:RUNNING)
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (C {(cat)} {(/var/run/) ($ VSub_Name "$NAME") (.pid)})
                                    spids: [412 418]
                                  )
                                }
                              spids: [411]
                            )
                          ]
                          spids: [411]
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: 
                                    (C {(Lit_Other "[")} {(-d)} {(/proc/) ($ VSub_Name "$RUNNING")} 
                                      {(Lit_Other "]")}
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (Sentence
                                          command: 
                                            (C {(Lit_Other "[")} 
                                              {
                                                (CommandSubPart
                                                  command_list: 
                                                    (C {(readlink)} 
                                                      {(/proc/) ($ VSub_Name "$RUNNING") (/exe)}
                                                    )
                                                  spids: [440 446]
                                                )
                                              } {(Lit_Other "=")} {($ VSub_Name "$DAEMON")} {(Lit_Other "]")}
                                            )
                                          terminator: <Op_Semi ";">
                                        )
                                      action: 
                                        (CommandList
                                          children: [
                                            (C {(echo)} {(DQ ($ VSub_Name "$NAME") (" is running."))})
                                            (C {(exit)} {(0)})
                                          ]
                                        )
                                      spids: [-1 455]
                                    )
                                  ]
                                  spids: [-1 471]
                                )
                              spids: [-1 433]
                            )
                          ]
                          spids: [-1 474]
                        )
                        (C {(echo)} 
                          {(DQ ($ VSub_Name "$NAME") (" is not running, but pidfile existed."))}
                        )
                        (C {(rm)} {(/var/run/) ($ VSub_Name "$NAME") (.pid)})
                        (C {(exit)} {(1)})
                      ]
                    )
                  spids: [-1 408]
                )
              ]
              else_action: 
                (CommandList
                  children: [
                    (C {(rm)} {(-f)} {(/var/run/) ($ VSub_Name "$NAME") (.pid)})
                    (C {(echo)} {(DQ ($ VSub_Name "$NAME") (" not running."))})
                    (C {(exit)} {(1)})
                  ]
                )
              spids: [502 527]
            )
          spids: [391 392 530 -1]
        )
        (case_arm
          pat_list: [{(Lit_Other "*")}]
          action: 
            (CommandList
              children: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LeftVar name:N)
                      rhs: {(/etc/init.d/) ($ VSub_Name "$NAME")}
                      spids: [537]
                    )
                  ]
                  spids: [537]
                )
                (SimpleCommand
                  words: [
                    {(echo)}
                    {(DQ ("Usage: ") ($ VSub_Name "$N") (" {start|stop|restart|force-reload}"))}
                  ]
                  redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[550])]
                )
                (C {(exit)} {(1)})
              ]
            )
          spids: [533 534 559 -1]
        )
      ]
      spids: [163 169 561]
    )
    (C {(exit)} {(0)})
  ]
)