(command.CommandList children: [ (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 <'Cannot be run outside smf(5)'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [128 141] ) ] else_action: [] redirects: [] ) (C {<.>} {<'/lib/svc/share/smf_include.sh'>}) (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'> <Id.Lit_Colon ':'> <'/sbin'>} spids: [172] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'vfstab='> name:vfstab) op: assign_op.Equal rhs: {<'/etc/vfstab'>} spids: [179] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mnttab='> name:mnttab) op: assign_op.Equal rhs: {<'/etc/mnttab'>} spids: [182] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mntlist='> name:mntlist) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [185] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'option='> name:option) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [187] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'otherops='> name:otherops) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [189] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'action='> name:action) op: assign_op.Equal rhs: {($ Id.VSub_Number 1)} spids: [192] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_Number 1))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<xsysinit>} {<-a>} {<-d>} {<'/usr/bin'>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (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: { (braced_var_sub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Number 7> var_name: 7 suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<S>}) right: <Id.Right_DollarBrace '}'> ) } spids: [240] ) ] 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: { (braced_var_sub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Number 8> var_name: 8 suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<0>}) right: <Id.Right_DollarBrace '}'> ) } spids: [251] ) ] 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: { (braced_var_sub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Number 9> var_name: 9 suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<0>}) right: <Id.Right_DollarBrace '}'> ) } spids: [262] ) ] redirects: [] ) ] spids: [200 223] ) ] else_action: [ (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: {<S>} spids: [275] ) ] 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: {<0>} spids: [279] ) ] 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: {<0>} spids: [283] ) ] redirects: [] ) ] redirects: [] ) (C {<set>} {<-->} { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<'/sbin/uname'>} {<-a>}) right: <Id.Backtick_Right '`'> ) } ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-eq>} {<7>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (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: [330] ) ] 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: [339] ) ] redirects: [] ) (C {<shift>} {<2>}) ] spids: [314 327] ) ] else_action: [ (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: [355] ) ] 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: (rhs_word.Empty) spids: [364] ) ] redirects: [] ) (C {<shift>} {<1>}) ] 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 1))} spids: [377] ) ] 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 2))} spids: [385] ) ] 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 3))} spids: [393] ) ] 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 4))} spids: [401] ) ] 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 5))} spids: [409] ) ] 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>}) (C {<.>} {<'/lib/svc/share/fs_include.sh'>}) (C {<svcprop>} {<-q>} {<-p>} {<'system/reconfigure'>} {<'system/svc/restarter'> <Id.Lit_Colon ':'> <default>} ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-eq>} {<0>} {<Id.Lit_RBracket ']'>}) ] ) action: [ (C {<echo>} {(DQ <'Setting _INIT_RECONFIG.'>)}) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_DVFS_RECONFIG='> name: _DVFS_RECONFIG ) op: assign_op.Equal rhs: {<YES>} spids: [521] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (C {<export>} {<_DVFS_RECONFIG>}) (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_INIT_RECONFIG='> name: _INIT_RECONFIG ) op: assign_op.Equal rhs: {<set>} spids: [530] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (C {<export>} {<_INIT_RECONFIG>}) ] spids: [499 511] ) ] else_action: [] redirects: [] ) (command.Case to_match: {($ Id.VSub_DollarName action)} arms: [ (case_arm pat_list: [{<stop>}] action: [ (command.Simple words: [] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/etc/nologin'>} ) ] more_env: [] do_fork: F ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-d>} {<'/etc/rcS.d'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rcS.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 '['>} {<Id.KW_Bang '!'>} {<-s>} {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] spids: [598 611] ) ] else_action: [] redirects: [] ) (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: [628 630 641 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<stop>}) ] spids: [644 645 653 -1] ) ] redirects: [] ) ] ) redirects: [] ) ] spids: [571 582] ) ] else_action: [] redirects: [] ) ] spids: [549 550 666 -1] ) (case_arm pat_list: [{<start>}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-d>} {<'/etc/rcS.d'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rcS.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 '['>} {<Id.KW_Bang '!'>} {<-s>} {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] spids: [701 714] ) ] else_action: [] redirects: [] ) (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: [731 733 744 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<start>}) ] spids: [747 748 756 -1] ) ] redirects: [] ) ] ) redirects: [] ) ] spids: [674 685] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName _INIT_RECONFIG))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-f>} {<'/reconfigure'>} {<Id.Lit_RBracket ']'>}) (C {<'/usr/bin/rm'>} {<-f>} {<'/reconfigure'>}) ] ) (C {<'/sbin/sync'>}) ] spids: [790 803] ) ] else_action: [] redirects: [] ) ] spids: [670 671 829 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<echo>} {(DQ <'Usage: '> ($ Id.VSub_Number 0) <' { start | stop }'>)}) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {($ Id.VSub_DollarName SMF_EXIT_ERR_CONFIG)} ) ] spids: [833 834 851 -1] ) ] redirects: [] ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {($ Id.VSub_DollarName SMF_EXIT_OK)} ) ] )