(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: {<'/sbin'> <Id.Lit_Colon ':'> <'/bin'>} spids: [31] ) ] redirects: [] ) (C {<.>} {<'/lib/init/vars.sh'>}) (C {<.>} {<'/lib/lsb/init-functions'>}) (command.ShFunction name: do_stop body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ) (C {<log_action_begin_msg>} {(DQ <'Mounting root filesystem read-only'>)}) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<-f>} {<'/var/run/init.upgraded'>} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'old_map='> name:old_map) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<cat>} {<'/proc/1/maps'>}) right: <Id.Eof_RParen _> ) } spids: [101] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'map='> name:map) op: assign_op.Equal rhs: {($ Id.VSub_DollarName old_map)} spids: [111] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<telinit>} {<u>}) (C {<Id.Lit_Colon ':'>})] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i='> name:i) op: assign_op.Equal rhs: {<0>} spids: [124] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'timeout='> name:timeout) op: assign_op.Equal rhs: {<5>} spids: [128] ) ] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName map))} {<Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName old_map))} {<Id.Lit_RBracket ']'>} ) ] ) body: (command.DoGroup children: [ (C {<sleep>} {<1>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'map='> name:map) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<cat>} {<'/proc/1/maps'>}) right: <Id.Eof_RParen _> ) } spids: [157] ) ] redirects: [] ) (C {<'/usr/bin/logger'>} {(DQ <'waiting for init to respawn'>)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i='> name:i) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: ($ Id.Lit_ArithVarLike i) right: {<Id.Lit_Digits 1>} ) ) } spids: [174] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName i)} {<-eq>} {($ Id.VSub_DollarName timeout)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)] spids: [183 197] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName map))} {<Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName old_map))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<'/usr/bin/logger'>} { (DQ <'FAIL: init failed to respawn in '> ($ Id.VSub_DollarName timeout) <' seconds - unmounting anyway'> ) } ) ] spids: [210 228] ) ] else_action: [ (C {<'/usr/bin/logger'>} { (DQ <'SUCCESS: init respawned after '> ($ Id.VSub_DollarName i) <' seconds (within '> ($ Id.VSub_DollarName timeout) <' seconds timeout)'> ) } ) ] redirects: [] ) ] spids: [87 98] ) ] else_action: [] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'MOUNT_FORCE_OPT='> name: MOUNT_FORCE_OPT ) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [261] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<uname>} {<-s>}) right: <Id.Eof_RParen _> ) ) } {<Id.Lit_Equals '='>} {(DQ <'GNU/kFreeBSD'>)} {<Id.Lit_RBracket ']'>} ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'MOUNT_FORCE_OPT='> name: MOUNT_FORCE_OPT ) op: assign_op.Equal rhs: {<-f>} spids: [284] ) ] redirects: [] ) ] ) (command.AndOr ops: [Id.Op_DPipe Id.Op_DPipe] children: [ (command.Simple words: [ {<mount>} {($ Id.VSub_DollarName MOUNT_FORCE_OPT)} {<-n>} {<-o>} {<remount> <Id.Lit_Comma ','> <ro>} {<-t>} {<dummytype>} {<dummydev>} {<'/'>} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) (command.Simple words: [ {<mount>} {($ Id.VSub_DollarName MOUNT_FORCE_OPT)} {<-n>} {<-o>} {<remount> <Id.Lit_Comma ','> <ro>} {<dummydev>} {<'/'>} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) (C {<mount>} {($ Id.VSub_DollarName MOUNT_FORCE_OPT)} {<-n>} {<-o>} {<remount> <Id.Lit_Comma ','> <ro>} {<'/'>} ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ES='> name:ES) op: assign_op.Equal rhs: {($ Id.VSub_QMark '?')} spids: [369] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ) (C {<log_action_end_msg>} {($ Id.VSub_DollarName ES)}) ] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.Case to_match: {(DQ ($ Id.VSub_Number 1))} arms: [ (case_arm pat_list:[{<start>} {<status>}] action:[] spids:[403 406 413 -1]) (case_arm pat_list: [{<restart>} {<reload>} {<force-reload>}] action: [ (command.Simple words: [{<echo>} {(DQ <'Error: argument \''> ($ Id.VSub_Number 1) <'\' not supported'>)}] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] more_env: [] do_fork: T ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<3>}) ] spids: [416 421 441 -1] ) (case_arm pat_list:[{<stop>}] action:[(C {<do_stop>})] spids:[444 445 451 -1]) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.Simple words: [{<echo>} {(DQ <'Usage: '> ($ Id.VSub_Number 0) <' start|stop'>)}] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] more_env: [] do_fork: T ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<3>}) ] spids: [454 455 475 -1] ) ] redirects: [] ) (C {<Id.Lit_Colon ':'>}) ] )