(CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:vers) op:Equal rhs:{(1.4)} spids:[87])] spids: [87] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-ne)} {(2)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('Usage: amuFormat.sh <Card Type> <drive>'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[127])] ) (SimpleCommand words: [{(echo)} {(DQ ('<Card Type> has to be defined in amuFormat.sh itself'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[137])] ) (SimpleCommand words: [{(echo)} {(DQ ('<drive> has to be defined in mtools.conf'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[147])] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 118] ) ] spids: [16777215 155] ) (C {(echo)} {(DQ ('amuFormat ') ($ VSub_Name '$vers') (' started...'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:drive) op: Equal rhs: {(DQ ($ VSub_Number '$2'))} spids: [167] ) ] spids: [167] ) (Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(8MBCARD-FW)}] action: [ (Case to_match: {(DQ ($ VSub_Number '$2'))} arms: [ (case_arm pat_list: [{(Lit_Other '[') (bB) (Lit_Other ']') (Lit_Other ':')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:drive) op: Equal rhs: {(DQ ('f:'))} spids: [208] ) ] spids: [208] ) ] spids: [202 206 213 16777215] ) (case_arm pat_list: [{(Lit_Other '[') (cC) (Lit_Other ']') (Lit_Other ':')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:drive) op: Equal rhs: {(DQ ('g:'))} spids: [222] ) ] spids: [222] ) ] spids: [216 220 227 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Sentence child: (C {(echo)} {(DQ ('Drive ') ($ VSub_Number '$2') (' not supported.'))}) terminator: <Op_Semi ';'> ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [230 231 246 16777215] ) ] spids: [193 199 249] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cylinders) op: Equal rhs: {(245)} spids: [252] ) (assign_pair lhs:(LhsName name:heads) op:Equal rhs:{(2)} spids:[255]) (assign_pair lhs: (LhsName name:cluster_size) op: Equal rhs: {(8)} spids: [258] ) ] spids: [252] ) ] spids: [181 182 262 16777215] ) (case_arm pat_list: [{(32MBCARD-FW)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cylinders) op: Equal rhs: {(489)} spids: [276] ) (assign_pair lhs:(LhsName name:heads) op:Equal rhs:{(4)} spids:[279]) (assign_pair lhs: (LhsName name:cluster_size) op: Equal rhs: {(4)} spids: [282] ) ] spids: [276] ) ] spids: [264 265 286 16777215] ) (case_arm pat_list: [{(64MBCARD-FW)}] action: [ (C {(echo)} {(DQ ('***** WARNING: untested on AvHMU, exiting *****'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cylinders) op: Equal rhs: {(245)} spids: [304] ) (assign_pair lhs:(LhsName name:heads) op:Equal rhs:{(2)} spids:[307]) (assign_pair lhs: (LhsName name:cluster_size) op: Equal rhs: {(8)} spids: [310] ) ] spids: [304] ) ] spids: [288 289 314 16777215] ) (case_arm pat_list: [{(1GBCARD-FW)}] action: [ (C {(echo)} {(DQ ('***** WARNING: untested on AvHMU *****'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cylinders) op: Equal rhs: {(2327)} spids: [335] ) (assign_pair lhs: (LhsName name:heads) op: Equal rhs: {(16)} spids: [338] ) (assign_pair lhs: (LhsName name:cluster_size) op: Equal rhs: {(64)} spids: [341] ) ] spids: [335] ) ] spids: [316 317 345 16777215] ) (case_arm pat_list: [{(64MBCARDSAN)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cylinders) op: Equal rhs: {(489)} spids: [359] ) (assign_pair lhs:(LhsName name:heads) op:Equal rhs:{(8)} spids:[362]) (assign_pair lhs: (LhsName name:cluster_size) op: Equal rhs: {(4)} spids: [365] ) ] spids: [359] ) ] spids: [347 348 369 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (C {(echo)} {(DQ ('Card not supported.'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [380 381 396 16777215] ) ] spids: [173 179 398] ) (C {(echo)} {(DQ ('Formatting card in slot ') ($ VSub_Number '$2') (' as ') ($ VSub_Number '$1'))}) (C {(mpartition)} {(-I)} {(DQ ($ VSub_Name '$drive'))}) (C {(mpartition)} {(-c)} {(-t) ($ VSub_Name '$cylinders')} {(-h) ($ VSub_Name '$heads')} {(-s32)} {(-b32)} {(DQ ($ VSub_Name '$drive'))} ) (C {(mformat)} {(-c) ($ VSub_Name '$cluster_size')} {(-v)} {(DQ ($ VSub_Number '$1'))} {(DQ ($ VSub_Name '$drive'))} ) (C {(minfo)} {(DQ ($ VSub_Number '$2'))}) (C {(mdir)} {(DQ ($ VSub_Number '$2'))}) (C {(echo)} {(DQ (done.))}) ] )