(command.CommandList children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(/etc/init/lxc-android-config.conf)} {(Lit_Other ']')} ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH spids:[48]) op: Equal rhs: {(/sbin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/bin)} spids: [48] ) ] spids: [48] ) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/lsb/init-functions)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:AVAILABLE spids:[67]) op: Equal rhs: {(DQ (/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors))} spids: [67] ) ] spids: [67] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DOWN_FACTOR spids:[72]) op: Equal rhs: {(DQ (/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor))} spids: [72] ) ] spids: [72] ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (C {(start-stop-daemon)} {(--start)} {(--background)} {(--exec)} {(/etc/init.d/ondemand)} {(--)} {(background)} ) ] spids: [87 88 106 16777215] ) (case_arm pat_list: [{(background)}] action: [ (C {(sleep)} {(60)}) (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-f)} {($ VSub_DollarName '$AVAILABLE')} {(Lit_Other ']')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (command.SimpleCommand words: [{(read)} {(governors)}] redirects: [ (redir.Redir op: <Redir_Less '<'> fd: 16777215 arg_word: {($ VSub_DollarName '$AVAILABLE')} ) ] ) (command.Case to_match: {($ VSub_DollarName '$governors')} arms: [ (case_arm pat_list: [{(Lit_Other '*') (interactive) (Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:GOVERNOR spids:[159]) op: Equal rhs: {(DQ (interactive))} spids: [159] ) ] spids: [159] ) (command.ControlFlow token:<ControlFlow_Break break>) ] spids: [153 156 168 16777215] ) (case_arm pat_list: [{(Lit_Other '*') (ondemand) (Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:GOVERNOR spids:[177]) op: Equal rhs: {(DQ (ondemand))} spids: [177] ) ] spids: [177] ) (command.Case to_match: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(uname)} {(-m)})]) left_token: <Left_CommandSub '$('> spids: [185 189] ) } arms: [ (case_arm pat_list: [{(ppc64) (Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SAMPLING spids:[199]) op: Equal rhs: {(100)} spids: [199] ) ] spids: [199] ) ] spids: [194 196 203 16777215] ) ] spids: [183 191 206] ) (command.ControlFlow token:<ControlFlow_Break break>) ] spids: [171 174 212 16777215] ) (case_arm pat_list: [{(Lit_Other '*') (powersave) (Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:GOVERNOR spids:[221]) op: Equal rhs: {(DQ (powersave))} spids: [221] ) ] spids: [221] ) (command.ControlFlow token:<ControlFlow_Break break>) ] spids: [215 218 230 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [(command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})] spids: [233 234 242 16777215] ) ] spids: [146 150 245] ) (command.ForEach iter_name: CPUFREQ iter_words: [{(/sys/devices/system/cpu/cpu) (Lit_Other '*') (/cpufreq/scaling_governor)}] do_arg_iter: F body: (command.DoGroup children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-f)} {($ VSub_DollarName '$CPUFREQ')} {(Lit_Other ']')}) (command.ControlFlow token: <ControlFlow_Continue continue> ) ] ) (command.SimpleCommand words: [{(echo)} {(-n)} {($ VSub_DollarName '$GOVERNOR')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {($ VSub_DollarName '$CPUFREQ')} ) ] ) ] spids: [260 287] ) spids: [254 16777215] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$SAMPLING'))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(-f)} {($ VSub_DollarName '$DOWN_FACTOR')} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)} {(-n)} {($ VSub_DollarName '$SAMPLING')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {($ VSub_DollarName '$DOWN_FACTOR')} ) ] ) ] spids: [16777215 313] ) ] spids: [16777215 327] ) ] spids: [109 110 330 16777215] ) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: [ (command.SimpleCommand words: [{(echo)} {(DQ ("Error: argument '") ($ VSub_Number '$1') ("' not supported"))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] spids: [333 338 358 16777215] ) (case_arm pat_list:[{(stop)}] spids:[361 362 365 16777215]) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand words: [{(echo)} {(DQ ('Usage: ') ($ VSub_Number '$0') (' start|stop'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] spids: [368 369 389 16777215] ) ] spids: [78 84 391] ) ] )