(command.CommandList children: [ (command.ShAssignment left: <Id.Lit_VarLike 'PATH='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'PATH='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/sbin'> <Id.Lit_Colon ':'> <'/usr/sbin'> <Id.Lit_Colon ':'> <'/bin'> <Id.Lit_Colon ':'> <'/usr/bin'> } ) ] redirects: [] ) (command.Simple blame_tok: <.> more_env: [] words: [{<.>} {<'/lib/init/vars.sh'>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <.> more_env: [] words: [{<.>} {<'/lib/lsb/init-functions'>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <umask> more_env: [] words: [{<umask>} {<022>}] redirects: [] do_fork: T ) (command.ShFunction name_tok: <do_stop> name: do_stop body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.ShAssignment left: <Id.Lit_VarLike 'PROTECTED_MOUNTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'PROTECTED_MOUNTS='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'PROTECTED_MOUNTS='> name: PROTECTED_MOUNTS ) op: assign_op.Equal rhs: { (DQ (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <sed> more_env: [] words: [ {<sed>} {<-n>} {(SQ <':a;/^[^ ]* \\/ /!{H;n;ba};{H;s/.*//;x;s/\\n//;p}'>)} {<'/proc/mounts'>} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'WEAK_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'WEAK_MTPTS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'WEAK_MTPTS='> name:WEAK_MTPTS) op: assign_op.Equal rhs: {(DQ )} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'REG_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'REG_MTPTS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'REG_MTPTS='> name:REG_MTPTS) op: assign_op.Equal rhs: {(DQ )} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'TMPFS_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'TMPFS_MTPTS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TMPFS_MTPTS='> name:TMPFS_MTPTS) op: assign_op.Equal rhs: {(DQ )} ) ] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Simple blame_tok: <read> more_env: [] words: [{<read>} {<-r>} {<DEV>} {<MTPT>} {<FSTYPE>} {<REST>}] redirects: [] do_fork: T ) ] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.AndOr children: [ (command.Pipeline children: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ ($ Id.VSub_DollarName PROTECTED_MOUNTS))}] redirects: [] do_fork: T ) (command.Simple blame_tok: <grep> more_env: [] words: [ {<grep>} {<-qs>} { (DQ <'^'> ($ Id.VSub_DollarName DEV) <' '> ($ Id.VSub_DollarName MTPT) <' '> ) } ] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _>] ) (command.ControlFlow keyword: <Id.ControlFlow_Continue continue> ) ] ops: [<Id.Op_DAmp _>] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName MTPT))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <'/'> pattern: (pat.Words words: [ {<'/'>} {<'/proc'>} {<'/dev'>} {<'/.dev'>} {<'/dev/pts'>} {<'/dev/shm'>} {<'/dev/.static/dev'>} {<'/proc/'> <Id.Lit_Star '*'>} {<'/sys'>} {<'/sys/'> <Id.Lit_Star '*'>} {<'/run'>} {<'/run/'> <Id.Lit_Star '*'>} {<'/dev/vcs'>} ] ) middle: <Id.Right_CasePat _> action: [(command.ControlFlow keyword:<Id.ControlFlow_Continue continue>)] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName FSTYPE))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.KW_Proc proc> pattern: (pat.Words words: [ {<Id.KW_Proc proc>} {<procfs>} {<linprocfs>} {<sysfs>} {<usbfs>} {<usbdevfs>} {<devpts>} ] ) middle: <Id.Right_CasePat _> action: [(command.ControlFlow keyword:<Id.ControlFlow_Continue continue>)] right: <Id.Op_DSemi _> ) (CaseArm left: <tmpfs> pattern: (pat.Words words:[{<tmpfs>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'TMPFS_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'TMPFS_MTPTS='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'TMPFS_MTPTS='> name: TMPFS_MTPTS ) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName MTPT) <' '> ($ Id.VSub_DollarName TMPFS_MTPTS) ) } ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} {(DQ ($ Id.VSub_DollarName PROTECTED_MOUNTS))} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <grep> more_env: [] words: [ {<grep>} {<-qs>} {(DQ <'^'> ($ Id.VSub_DollarName DEV) <' '>)} ] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _>] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'WEAK_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'WEAK_MTPTS='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'WEAK_MTPTS='> name: WEAK_MTPTS ) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName MTPT) <' '> ($ Id.VSub_DollarName WEAK_MTPTS) ) } ) ] redirects: [] ) ] spids: [239 260] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.ShAssignment left: <Id.Lit_VarLike 'REG_MTPTS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'REG_MTPTS='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'REG_MTPTS='> name: REG_MTPTS ) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName MTPT) <' '> ($ Id.VSub_DollarName REG_MTPTS) ) } ) ] redirects: [] ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [(Redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<'/proc/mounts'>})] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName TMPFS_MTPTS))} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_action_begin_msg> more_env: [] words: [ {<log_action_begin_msg>} {(DQ <'Unmounting temporary filesystems'>)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [{<fstab-decode>} {<umount>} {($ Id.VSub_DollarName TMPFS_MTPTS)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_action_end_msg> more_env: [] words: [{<log_action_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] spids: [333 348] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Will now unmount temporary filesystems'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [{<fstab-decode>} {<umount>} {<-v>} {($ Id.VSub_DollarName TMPFS_MTPTS)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] spids: [319 330] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_action_begin_msg> more_env: [] words: [{<log_action_begin_msg>} {(DQ <'Deactivating swap'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <swapoff> more_env: [] words: [{<swapoff>} {<-a>}] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] do_fork: T ) (command.Simple blame_tok: <log_action_end_msg> more_env: [] words: [{<log_action_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] spids: [413 428] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Will now deactivate swap'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <swapoff> more_env: [] words: [{<swapoff>} {<-a>} {<-v>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName WEAK_MTPTS))} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_action_begin_msg> more_env: [] words: [{<log_action_begin_msg>} {(DQ <'Unmounting weak filesystems'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [ {<fstab-decode>} {<umount>} {<-r>} {<-d>} {($ Id.VSub_DollarName WEAK_MTPTS)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_action_end_msg> more_env: [] words: [{<log_action_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] spids: [507 522] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Will now unmount weak filesystems'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [ {<fstab-decode>} {<umount>} {<-v>} {<-r>} {<-d>} {($ Id.VSub_DollarName WEAK_MTPTS)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] spids: [489 500] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName REG_MTPTS))} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName VERBOSE))} {<Id.Lit_Equals '='>} {<no>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_action_begin_msg> more_env: [] words: [{<log_action_begin_msg>} {(DQ <'Unmounting local filesystems'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [ {<fstab-decode>} {<umount>} {<-f>} {<-r>} {<-d>} {($ Id.VSub_DollarName REG_MTPTS)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_action_end_msg> more_env: [] words: [{<log_action_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] spids: [596 611] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Will now unmount local filesystems'>)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <fstab-decode> more_env: [] words: [ {<fstab-decode>} {<umount>} {<-f>} {<-v>} {<-r>} {<-d>} {($ Id.VSub_DollarName REG_MTPTS)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {($ Id.VSub_QMark '?')}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] spids: [582 593] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_Number 1))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <start> pattern: (pat.Words words:[{<start>} {<status>}]) middle: <Id.Right_CasePat _> action: [] right: <Id.Op_DSemi _> ) (CaseArm left: <restart> pattern: (pat.Words words:[{<restart>} {<reload>} {<force-reload>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <echo> more_env: [] 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>})] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<3>}) ] right: <Id.Op_DSemi _> ) (CaseArm left: <stop> pattern: (pat.Words words:[{<stop>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <do_stop> more_env: [] words: [{<do_stop>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'Usage: '> ($ Id.VSub_Number 0) <' start|stop'>)}] redirects: [(Redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<3>}) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Simple blame_tok: <Id.Lit_Colon ':'> more_env: [] words: [{<Id.Lit_Colon ':'>}] redirects: [] do_fork: T ) ] )