(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/usr/sbin'> <Id.Lit_Colon ':'> <'/usr/bin'>} spids: [98] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName SMF_RESTARTER))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<echo>} {(DQ <'This script cannot be run outside smf(5).'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [104 117] ) ] else_action: [] redirects: [] ) (C {<.>} {<'/lib/svc/share/smf_include.sh'>}) (C {<set>} {<-->} { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<'/usr/bin/who'>} {<-r>}) right: <Id.Backtick_Right '`'> ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_RUN_LEVEL='> name:_INIT_RUN_LEVEL) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 7))} spids: [156] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_RUN_NPREV='> name:_INIT_RUN_NPREV) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 8))} spids: [164] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_PREV_LEVEL='> name:_INIT_PREV_LEVEL) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 9))} spids: [172] ) ] redirects: [] ) (C {<set>} {<-->} { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<'/usr/bin/uname'>} {<-a>}) right: <Id.Backtick_Right '`'> ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_SYSNAME='> name:_INIT_UTS_SYSNAME) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 1))} spids: [194] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_NODENAME='> name:_INIT_UTS_NODENAME) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 2))} spids: [202] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_RELEASE='> name:_INIT_UTS_RELEASE) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 3))} spids: [210] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_VERSION='> name:_INIT_UTS_VERSION) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 4))} spids: [218] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_MACHINE='> name:_INIT_UTS_MACHINE) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 5))} spids: [226] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_ISA='> name:_INIT_UTS_ISA) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 6))} spids: [234] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_INIT_UTS_PLATFORM='> name:_INIT_UTS_PLATFORM) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 7))} spids: [242] ) ] redirects: [] ) (C {<export>} {<_INIT_RUN_LEVEL>} {<_INIT_RUN_NPREV>} {<_INIT_PREV_LEVEL>} {<_INIT_UTS_SYSNAME>} {<_INIT_UTS_NODENAME>} {<_INIT_UTS_RELEASE>} {<_INIT_UTS_VERSION>} {<_INIT_UTS_MACHINE>} {<_INIT_UTS_ISA>} {<_INIT_UTS_PLATFORM>} ) (C {<smf_netstrategy>}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-d>} {<'/etc/rc3.d'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rc3.d/K'> <Id.Lit_Star '*'>}]) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-s>} {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Case to_match: {($ Id.VSub_DollarName f)} arms: [ (case_arm pat_list: [{<Id.Lit_Star '*'> <.sh>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {<-s>} {($ Id.VSub_DollarName f)} {<stop>} ) ] spids: [339 341 351 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<stop>}) ] spids: [354 355 363 -1] ) ] redirects: [] ) ] spids: [318 329] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rc3.d/S'> <Id.Lit_Star '*'>}]) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-s>} {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Case to_match: {($ Id.VSub_DollarName f)} arms: [ (case_arm pat_list: [{<Id.Lit_Star '*'> <.sh>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {<-s>} {($ Id.VSub_DollarName f)} {<start>} ) ] spids: [410 412 422 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<start>}) ] spids: [425 426 434 -1] ) ] redirects: [] ) ] spids: [389 400] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) ] spids: [291 302] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [(command.Sentence child:(C {<smf_is_globalzone>}) terminator:<Id.Op_Semi _>)] ) action: [ (command.Sentence child: (command.Subshell child: (command.CommandList children: [ (command.Sentence child: (C {<sleep>} {<5>}) terminator: <Id.Op_Semi _> ) (C {<modunload>} {<-i>} {<0>}) ] ) redirects: [] ) terminator: <Id.Op_Amp _> ) (command.Simple words: [] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] more_env: [] do_fork: F ) ] spids: [448 453] ) ] else_action: [] redirects: [] ) ] )