(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: [98 111] ) ] 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'>} spids: [133] ) ] 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: [139] ) ] redirects: [] ) (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: [160] ) ] 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: [168] ) ] 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: [176] ) ] 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: [198] ) ] 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: [206] ) ] 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: [214] ) ] 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: [222] ) ] 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: [230] ) ] 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: [238] ) ] 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: [246] ) ] 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 {<.>} {<'/lib/svc/share/fs_include.sh'>}) (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/rc1.d'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rc1.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.Sentence child: (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) terminator: <Id.Op_Semi _> ) ] spids: [339 352] ) ] 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: [370 372 383 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<stop>}) ] spids: [386 387 395 -1] ) ] redirects: [] ) ] ) redirects: [] ) ] spids: [312 323] ) ] else_action: [] redirects: [] ) ] spids: [294 295 408 -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/rc1.d'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{<'/etc/rc1.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.Sentence child: (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) terminator: <Id.Op_Semi _> ) ] spids: [443 456] ) ] 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: [474 476 487 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<'/lib/svc/bin/lsvcrun'>} {($ Id.VSub_DollarName f)} {<start>}) ] spids: [490 491 499 -1] ) ] redirects: [] ) ] ) redirects: [] ) ] spids: [416 427] ) ] else_action: [] redirects: [] ) ] spids: [412 413 512 -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: [516 517 534 -1] ) ] redirects: [] ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {($ Id.VSub_DollarName SMF_EXIT_OK)} ) ] )