(command.CommandList children: [ (C {(set)} {(-e)}) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:DAEMON) op:Equal rhs:{(/sbin/brltty)})] ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:NAME) op:Equal rhs:{(brltty)})] ) (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DESC) op: Equal rhs: {(SQ <'Braille terminal driver'>)} ) ] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(test)} {(-f)} {($ VSub_DollarName '$DAEMON')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_LBracket '[')} {(-e)} {(/dev/.initramfs/brltty.conf)} {(Lit_RBracket ']')}) (C {(Lit_LBracket '[')} {(-e)} {(/etc/default/brltty)} {(Lit_RBracket ']')}) ] ) terminator: <Op_Semi ';'> ) ] action: [ (C {(mv)} {(/dev/.initramfs/brltty.conf)} {(/etc/brltty.conf)}) (C {(sed)} {(-i)} {(-e)} {(SQ <'s/^RUN_BRLTTY=.*/RUN_BRLTTY=yes/'>)} {(/etc/default/brltty)}) ] ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_LBracket '[')} {(-r)} {(/etc/default/brltty)} {(Lit_RBracket ']')}) (C {(.)} {(/etc/default/brltty)}) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$RUN_BRLTTY'))} {(KW_Bang '!') (Lit_Other '=')} {(yes)} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [(command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})] ) ] ) (C {(set)} {(-e)}) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_LBracket '[')} {(-r)} {(/etc/default/locale)} {(Lit_RBracket ']')}) (C {(.)} {(/etc/default/locale)}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_LBracket '[')} {(-n)} {(DQ ($ VSub_DollarName '$LANG'))} {(Lit_RBracket ']')}) (C {(export)} {(LANG)}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$RUNLEVEL'))} {(Lit_Other '=')} {(DQ (S))} {(-a)} {(DQ ($ VSub_DollarName '$PREVLEVEL'))} {(Lit_Other '=')} {(DQ (N))} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$START_IN_INITRAMFS'))} {(Lit_Other '=')} {(DQ (true))} {(-o)} {(DQ ($ VSub_DollarName '$START_IN_INITRAMFS'))} {(Lit_Other '=')} {(DQ (yes))} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Simple words: [{($ VSub_Number '$0')} {(status)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(/dev/null)} ) ] ) terminator: <Op_Semi ';'> ) ] action: [(C {($ VSub_Number '$0')} {(stop)})] ) ] else_action: [ (C {(log_warning_msg)} { (SQ < 'BRLTTY was not running, did you forget to invoke "update-initramfs -u"?' > ) } ) ] ) ] ) ] ) ] ) ] ) (C {(log_daemon_msg)} {(DQ ('Starting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(start-stop-daemon)} {(--start)} {(--oknodo)} {(--exec)} {($ VSub_DollarName '$DAEMON')} {(--)} {($ VSub_DollarName '$ARGUMENTS')} ) terminator: <Op_Semi ';'> ) ] action: [(C {(log_end_msg)} {(0)})] ) ] else_action: [(C {(log_end_msg)} {(1)})] ) ] ) (case_arm pat_list: [{(stop)}] action: [ (C {(log_daemon_msg)} {(DQ ('Stopping ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--oknodo)} {(--retry)} {(5)} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) terminator: <Op_Semi ';'> ) ] action: [(C {(log_end_msg)} {(0)})] ) ] else_action: [(C {(log_end_msg)} {(1)})] ) ] ) (case_arm pat_list: [{(restart)} {(force-reload)}] action: [ (C {(log_daemon_msg)} {(DQ ('Restarting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry)} {(5)} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--exec)} {($ VSub_DollarName '$DAEMON')} {(--)} {($ VSub_DollarName '$ARGUMENTS')} ) terminator: <Op_Semi ';'> ) ] action: [(C {(log_end_msg)} {(0)})] ) ] else_action: [(C {(log_end_msg)} {(1)})] ) ] ) (case_arm pat_list: [{(status)}] action: [ (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(status_of_proc)} {(DQ ($ VSub_DollarName '$DAEMON'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {($ VSub_QMark '$?')} ) ] ) ] ) (case_arm pat_list: [{(Lit_Star '*')}] action: [ (command.Simple words: [ {(echo)} { (DQ ('Usage: /etc/init.d/') ($ VSub_DollarName '$NAME') (' {start|stop|restart|force-reload|status}') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] )