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