(CommandList children: [ (AndOr children: [(C {(Lit_Other "[")} {(-f)} {(/proc/modules)} {(Lit_Other "]")}) (C {(exit)} {(0)})] op_id: Op_DPipe ) (AndOr children: [(C {(Lit_Other "[")} {(-x)} {(/sbin/modprobe)} {(Lit_Other "]")}) (C {(exit)} {(0)})] op_id: Op_DPipe ) (AndOr children: [ (C {(Lit_Other "[")} {(-f)} {(/etc/default/rcS)} {(Lit_Other "]")}) (C {(.)} {(/etc/default/rcS)}) ] op_id: Op_DAmp ) (C {(.)} {(/lib/lsb/init-functions)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:PATH) rhs:{(SQ <"/sbin:/bin">)} spids:[88])] spids: [88] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list:[{(start)}] action:(NoOp) spids:[103104107-1]) (case_arm pat_list: [{(stop)} {(restart)} {(reload)} {(force-reload)}] action: (CommandList children: [ (C {(log_warning_msg)} {(DQ ("Action '") ($ VSub_Number "$1") ("' is meaningless for this init script"))} ) (C {(exit)} {(0)}) ] ) spids: [111 118 135 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (C {(log_success_msg)} {(DQ ("Usage: ") ($ VSub_Number "$0") (" start"))}) (C {(exit)} {(1)}) ] ) spids: [139 140 -1 156] ) ] spids: [94 100 156] ) (FuncDef name: load_module body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs:(LeftVar name:module) spids:[168]) (assign_pair lhs:(LeftVar name:args) spids:[170]) ] spids: [166] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:module) rhs: {(DQ ($ VSub_Number "$1"))} spids: [173] ) ] spids: [173] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:args) rhs: {(DQ ($ VSub_Number "$2"))} spids: [179] ) ] spids: [179] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(KW_Bang "!") (Lit_Other "=")} {(no)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_action_msg)} {(DQ ("Loading kernel module ") ($ VSub_Name "$module"))}) (AndOr children: [ (C {(modprobe)} {($ VSub_Name "$module")} {($ VSub_Name "$args")}) (C {(true)}) ] op_id: Op_DPipe ) ] ) spids: [-1 202] ) ] else_action: (AndOr children: [ (SimpleCommand words: [{(modprobe)} {($ VSub_Name "$module")} {($ VSub_Name "$args")}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/dev/null)} fd: -1 spids: [233] ) (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 2 spids: [237] ) ] ) (C {(true)}) ] op_id: Op_DPipe ) spids: [224 245] ) ] spids: [163] ) spids: [159 162] ) (FuncDef name: modules_files body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LeftVar name:modules_load_dirs) rhs: {(SQ <"/etc/modules-load.d /run/modules-load.d /lib/modules-load.d">)} spids: [259] ) ] spids: [257] ) (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LeftVar name:processed) rhs:{(SQ <" ">)} spids:[267])] spids: [265] ) (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LeftVar name:add_etc_modules) rhs:{(true)} spids:[275])] spids: [273] ) (ForEach iter_name: dir iter_words: [{($ VSub_Name "$modules_load_dirs")}] do_arg_iter: False body: (DoGroup child: (CommandList children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-d)} {($ VSub_Name "$dir")} {(Lit_Other "]")}) (C {(continue)}) ] op_id: Op_DPipe ) (ForEach iter_name: file iter_words: [ { (CommandSubPart command_list: (AndOr children: [ (SimpleCommand words: [ {(run-parts)} {(--list)} {(--regex) (Lit_Other "=") (SQ <"\\.conf$">)} {($ VSub_Name "$dir")} ] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/dev/null)} fd: 2 spids: [324] ) ] ) (C {(true)}) ] op_id: Op_DPipe ) spids: [311 331] ) } ] do_arg_iter: False body: (DoGroup child: (CommandList children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (BracedVarSub token: <VSub_Name file> suffix_op: (StringUnary op_id: VOp1_DPound arg_word: {("*") (Lit_Slash /)} ) spids: [340 345] ) } spids: [339] ) ] spids: [337] ) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children: [ (C {(echo)} {(-n)} {(DQ ($ VSub_Name "$processed"))}) (C {(grep)} {(-qF)} {(DQ (" ") ($ VSub_Name "$base") (" "))} ) ] negated: False ) terminator: <Op_Semi ";"> ) action: (C {(continue)}) spids: [-1 371] ) ] spids: [-1 377] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$add_etc_modules"))} {(-a)} {(-L)} {($ VSub_Name "$file")} {(-a)} { (DQ (CommandSubPart command_list: (C {(readlink)} {(-f)} {($ VSub_Name "$file")}) spids: [399 405] ) ) } {(Lit_Other "=")} {(/etc/modules)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:add_etc_modules) rhs: {(SQ )} spids: [418] ) ] spids: [418] ) spids: [-1 415] ) ] spids: [-1 421] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:processed) rhs: { (DQ ($ VSub_Name "$processed") ($ VSub_Name "$base") (" ") ) } spids: [424] ) ] spids: [424] ) (C {(echo)} {($ VSub_Name "$file")}) ] ) spids: [334 437] ) spids: [310 332] ) ] ) spids: [289 440] ) spids: [285 287] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$add_etc_modules"))} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (C {(echo)} {(/etc/modules)}) spids: [-1 455] ) ] spids: [-1 463] ) ] spids: [254] ) spids: [250 253] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(Lit_Other "=")} {(no)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(log_action_begin_msg)} {(SQ <"Loading kernel modules">)}) spids: [-1 483] ) ] spids: [-1 492] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:files) rhs: {(CommandSubPart command_list:(C {(modules_files)}) spids:[496498])} spids: [495] ) ] spids: [495] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$files"))} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (Pipeline children: [ (C {(grep)} {(-h)} {(SQ <"^[^#]">)} {($ VSub_Name "$files")}) (While cond: (Sentence command:(C {(read)} {(module)} {(args)}) terminator:<Op_Semi ";">) body: (DoGroup child: (CommandList children: [ (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$module"))} {(Lit_Other "]")}) (C {(continue)}) ] op_id: Op_DPipe ) (C {(load_module)} {(DQ ($ VSub_Name "$module"))} {(DQ ($ VSub_Name "$args"))} ) ] ) spids: [537 564] ) ) ] negated: False ) spids: [-1 512] ) ] spids: [-1 566] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(Lit_Other "=")} {(no)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(log_action_end_msg)} {(0)}) spids: [-1 584] ) ] spids: [-1 591] ) ] )