(CommandList children: [ (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:ACPID) rhs:{(DQ (/usr/sbin/acpid))} spids:[45])] spids: [45] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:DEFAULTS) rhs:{(DQ (/etc/default/acpid))} spids:[50])] spids: [50] ) (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(DQ ($ VSub_Name "$ACPID"))} {(Lit_Other "]")}) (C {(exit)} {(0)}) ] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:OPTIONS) rhs:{(DQ )} spids:[76])] spids: [76] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:MODULES) rhs:{(DQ )} spids:[80])] spids: [80] ) (AndOr children: [ (C {(Lit_Other "[")} {(-r)} {(DQ ($ VSub_Name "$DEFAULTS"))} {(Lit_Other "]")}) (C {(.)} {(DQ ($ VSub_Name "$DEFAULTS"))}) ] op_id: Op_DAmp ) (C {(.)} {(/lib/lsb/init-functions)}) (FuncDef name: load_modules body: (BraceGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-f)} {(/proc/modules)} {(Lit_Other "]")}) (C {(return)} {(0)}) ] op_id: Op_DPipe ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$MODULES"))} {(Lit_Other "=")} {(DQ (all))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:MODULES) rhs: { (DQ (CommandSubPart command_list: (C {(sed)} {(-rn)} { (SQ < "s#^(/lib/modules/[^/]+/)?kernel/(drivers|ubuntu)/acpi/([^/]+/)*(.*)\\.ko:.*#\\4#p" > ) } {(DQ (/lib/modules/) (CommandSubPart command_list:(C {(uname)} {(-r)}) spids:[175179]) (/modules.dep))} ) spids: [164 182] ) ) } spids: [162] ) ] spids: [162] ) spids: [-1 159] ) ] spids: [-1 186] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Name "$MODULES"))} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (C {(return)}) spids: [-1 203] ) ] spids: [-1 209] ) (C {(log_begin_msg)} {(DQ ("Loading ACPI kernel modules..."))}) (C {(unset)} {(MODPROBE_OPTIONS)}) (SimpleCommand words: [{(modprobe)} {(--all)} {(--use-blacklist)} {($ VSub_Name "$MODULES")}] redirects: [(Redirect op_id:Redir_Great arg_word:{(/dev/null)} fd:2 spids:[245])] ) (C {(log_end_msg)} {($ VSub_QMark "$?")}) ] spids: [124] ) spids: [120 123] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)}] action: (CommandList children: [ (AndOr children:[(C {(load_modules)})(C {(true)})] op_id:Op_DPipe) (C {(log_begin_msg)} {(DQ ("Starting ACPI services..."))}) (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--oknodo)} {(--exec)} {(DQ ($ VSub_Name "$ACPID"))} {(--)} {($ VSub_Name "$OPTIONS")} ) (C {(log_end_msg)} {($ VSub_QMark "$?")}) ] ) spids: [265 266 307 -1] ) (case_arm pat_list: [{(stop)}] action: (CommandList children: [ (C {(log_begin_msg)} {(DQ ("Stopping ACPI services..."))}) (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--oknodo)} {(--retry)} {(2)} {(--exec)} {(DQ ($ VSub_Name "$ACPID"))} ) (C {(log_end_msg)} {($ VSub_QMark "$?")}) ] ) spids: [310 311 345 -1] ) (case_arm pat_list: [{(restart)}] action: (CommandList children: [ (C {($ VSub_Number "$0")} {(stop)}) (C {(sleep)} {(1)}) (C {($ VSub_Number "$0")} {(start)}) ] ) spids: [348 349 367 -1] ) (case_arm pat_list: [{(reload)} {(force-reload)}] action: (CommandList children: [ (C {(log_begin_msg)} {(DQ ("Reloading ACPI services..."))}) (C {(start-stop-daemon)} {(--stop)} {(--signal)} {(1)} {(--exec)} {(DQ ($ VSub_Name "$ACPID"))} ) (C {(log_end_msg)} {($ VSub_QMark "$?")}) ] ) spids: [370 373 404 -1] ) (case_arm pat_list: [{(status)}] action: (C {(status_of_proc)} {(DQ ($ VSub_Name "$ACPID"))} {(acpid)}) spids: [407 408 420 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (C {(log_success_msg)} {(DQ ("Usage: /etc/init.d/acpid {start|stop|restart|reload|force-reload|status}"))} ) (C {(exit)} {(1)}) ] ) spids: [423 424 -1 438] ) ] spids: [256 262 438] ) ] )