(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH spids:[50]) op: Equal rhs: {(/usr/local/sbin) (Lit_Other ':') (/usr/local/bin) (Lit_Other ':') (/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/usr/bin) } spids: [50] ) ] spids: [50] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DAEMON spids:[63]) op: Equal rhs: {(/usr/sbin/cupsd)} spids: [63] ) ] spids: [63] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:NAME spids:[66]) op: Equal rhs: {(cupsd)} spids: [66] ) ] spids: [66] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PIDFILE spids:[69]) op: Equal rhs: {(/var/run/cups/) ($ VSub_DollarName '$NAME') (.pid)} spids: [69] ) ] spids: [69] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DESC spids:[74]) op: Equal rhs: {(DQ ('Common Unix Printing System'))} spids: [74] ) ] spids: [74] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SCRIPTNAME spids:[79]) op: Equal rhs: {(/etc/init.d/cups)} spids: [79] ) ] spids: [79] ) (C {(unset)} {(TMPDIR)}) (command.AndOr ops: [Op_DPipe] children: [ (C {(test)} {(-x)} {($ VSub_DollarName '$DAEMON')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (C {(mkdir)} {(-p)} {(/var/run/cups/certs)}) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-x)} {(/sbin/restorecon)} {(Lit_Other ']')}) (C {(/sbin/restorecon)} {(-R)} {(/var/run/cups)}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_DollarName '$TZ'))} {(-a)} {(-e)} {(/etc/timezone)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TZ spids:[166]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(cat)} {(/etc/timezone)})]) left_token: <Left_Backtick '`'> spids: [167 171] ) } spids: [166] ) ] spids: [166] ) (C {(export)} {(TZ)}) ] spids: [16777215 163] ) ] spids: [16777215 178] ) (command.FuncDef name: coldplug_usb_printers body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (command.SimpleCommand words: [{(type)} {(udevadm)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(/dev/null)} ) (redir.Redir op: <Redir_GreatAnd '2>&'> fd: 2 arg_word: {(1)} ) ] ) (C {(Lit_Other '[')} {(-x)} {(/lib/udev/udev-configure-printer)} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.ForEach iter_name: printer iter_words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [ {(udevadm)} {(trigger)} {(--verbose)} {(--dry-run)} {(--subsystem-match) (Lit_Other '=') (usb)} {(--attr-match) (Lit_Other '=') (Lit_VarLike 'bInterfaceClass=') (07) } {(--attr-match) (Lit_Other '=') (Lit_VarLike 'bInterfaceSubClass=') (01) } ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(true)}) ] ) terminator: <Op_Semi ';'> ) (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [ {(udevadm)} {(trigger)} {(--verbose)} {(--dry-run)} {(--subsystem-match) (Lit_Other '=') (usb)} {(--sysname-match) (Lit_Other '=') (SQ <'lp[0-9]*'>)} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(true)}) ] ) ] ) left_token: <Left_Backtick '`'> spids: [221 282] ) } ] do_arg_iter: F body: (command.DoGroup children: [ (C {(/lib/udev/udev-configure-printer)} {(add)} { (DQ (word_part.BracedVarSub token: <VSub_Name printer> suffix_op: (suffix_op.StringUnary op_id: VOp1_Pound arg_word: {(Lit_Slash /) (sys)} ) spids: [293 298] ) ) } ) ] spids: [285 302] ) spids: [220 283] ) ] spids: [16777215 212] ) ] spids: [16777215 305] ) ] spids: [185] ) spids: [181 184] ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (C {(log_daemon_msg)} {(DQ ('Starting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(mkdir)} {(-p)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(dirname)} {(DQ ($ VSub_DollarName '$PIDFILE'))})] ) left_token: <Left_Backtick '`'> spids: [340 346] ) } ) (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--oknodo)} {(--pidfile)} {(DQ ($ VSub_DollarName '$PIDFILE'))} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:status spids:[368]) op: Equal rhs: {($ VSub_QMark '$?')} spids: [368] ) ] spids: [368] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {($ VSub_DollarName '$status')} {(Lit_Other '=')} {(0)} {(Lit_Other ']')} ) (C {(coldplug_usb_printers)}) ] ) (C {(log_end_msg)} {($ VSub_DollarName '$status')}) ] spids: [319 320 392 16777215] ) (case_arm pat_list: [{(stop)}] action: [ (C {(log_daemon_msg)} {(DQ ('Stopping ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry)} {(5)} {(--oknodo)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--name)} {($ VSub_DollarName '$NAME')} ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:status spids:[432]) op: Equal rhs: {($ VSub_QMark '$?')} spids: [432] ) ] spids: [432] ) (C {(log_end_msg)} {($ VSub_DollarName '$status')}) ] spids: [395 396 441 16777215] ) (case_arm pat_list: [{(reload)} {(force-reload)}] action: [ (C {(log_daemon_msg)} {(DQ ('Reloading ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--name)} {($ VSub_DollarName '$NAME')} {(--signal)} {(1)} ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:status spids:[481]) op: Equal rhs: {($ VSub_QMark '$?')} spids: [481] ) ] spids: [481] ) (C {(log_end_msg)} {($ VSub_DollarName '$status')}) ] spids: [444 447 490 16777215] ) (case_arm pat_list: [{(restart)}] action: [ (C {(log_daemon_msg)} {(DQ ('Restarting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry)} {(5)} {(--oknodo)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--name)} {($ VSub_DollarName '$NAME')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--pidfile)} {(DQ ($ VSub_DollarName '$PIDFILE'))} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) ] spids: [16777215 532] ) ] spids: [16777215 552] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:status spids:[555]) op: Equal rhs: {($ VSub_QMark '$?')} spids: [555] ) ] spids: [555] ) (C {(log_end_msg)} {($ VSub_DollarName '$status')}) ] spids: [493 494 564 16777215] ) (case_arm pat_list: [{(status)}] action: [ (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(status_of_proc)} {(-p)} {(DQ ($ VSub_DollarName '$PIDFILE'))} {(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 '$?')} ) ] ) ] spids: [567 568 600 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_DollarName '$SCRIPTNAME') (' {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:{(3)}) ] spids: [603 604 624 16777215] ) ] spids: [310 316 626] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] )