(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TMP='> name:TMP) op: assign_op.Equal rhs: {(${ Id.VSub_Name FLASH_ROOT) <'/tmp/SUNWcsr.ttydefs.'> ($ Id.VSub_Dollar '$')} spids: [79] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TTYDEFS_FILE='> name:TTYDEFS_FILE) op: assign_op.Equal rhs: {(${ Id.VSub_Name FLASH_ROOT) <'/etc/ttydefs'>} spids: [86] ) ] redirects: [] ) (command.ShFunction name: isSparcEnterprise body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} { (DQ (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<grep>} {(SQ <'^console:.* crtscts:'>)} {(${ Id.VSub_Name TTYDEFS_FILE)} ) right: <Id.Backtick_Right '`'> ) ) } {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [ {<sed>} {<-e>} { (DQ <'/^console:.*onlcr:/ {\n'> <'\t\t\ts/onlcr:/onlcr crtscts:/\n'> <'\t\t\t}'> ) } {(${ Id.VSub_Name TTYDEFS_FILE)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {(${ Id.VSub_Name TMP)} ) ] more_env: [] do_fork: T ) (C {<cp>} {(${ Id.VSub_Name TMP)} {(${ Id.VSub_Name TTYDEFS_FILE)}) (C {<rm>} {<-f>} {(${ Id.VSub_Name TMP)}) ] spids: [110 136] ) ] else_action: [] redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name: defaultPlatform body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} { (DQ (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<grep>} {(SQ <'^console:.* crtscts:'>)} {(${ Id.VSub_Name TTYDEFS_FILE)} ) right: <Id.Backtick_Right '`'> ) ) } {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [ {<sed>} {<-e>} {(DQ <'/^console:.* crtscts:/ {\n'> <'\t\ts/ crtscts:/:/\n'> <'\t\t}'>)} {(${ Id.VSub_Name TTYDEFS_FILE)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {(${ Id.VSub_Name TMP)} ) ] more_env: [] do_fork: T ) (C {<cp>} {(${ Id.VSub_Name TMP)} {(${ Id.VSub_Name TTYDEFS_FILE)}) (C {<rm>} {<-f>} {(${ Id.VSub_Name TMP)}) ] spids: [199 223] ) ] else_action: [] redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PLATFORM_TOKEN='> name:PLATFORM_TOKEN) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [(C {<prtconf>} {<-b>}) (C {<awk>} {(SQ <'/^name:/ { print $2 }'>)})] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } spids: [279] ) ] redirects: [] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName PLATFORM_TOKEN))} arms: [ (case_arm pat_list: [{<SUNW> <Id.Lit_Comma ','> <SPARC-Enterprise>}] action: [(C {<isSparcEnterprise>})] spids: [305 308 314 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [(C {<defaultPlatform>})] spids: [317 318 324 -1] ) ] redirects: [] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )