(command.CommandList children: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH) op: Equal rhs: {(/sbin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/bin)} ) ] ) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/lsb/init-functions)}) (C {(umask)} {(022)}) (command.FuncDef name: do_stop body: (command.BraceGroup children: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PROTECTED_MOUNTS) op: Equal rhs: { (DQ (word_part.CommandSub left_token: <Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {(sed)} {(-n)} {(SQ <':a;/^[^ ]* \\/ /!{H;n;ba};{H;s/.*//;x;s/\\n//;p}'>)} {(/proc/mounts)} ) ] ) ) ) } ) ] ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:WEAK_MTPTS) op:Equal rhs:{(DQ )})] ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:REG_MTPTS) op:Equal rhs:{(DQ )})] ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:TMPFS_MTPTS) op:Equal rhs:{(DQ )})] ) (command.WhileUntil keyword: <KW_While while> cond: [(C {(read)} {(-r)} {(DEV)} {(MTPT)} {(FSTYPE)} {(REST)})] body: (command.DoGroup children: [ (command.AndOr ops: [Op_DAmp] children: [ (command.Pipeline children: [ (C {(echo)} {(DQ ($ VSub_DollarName '$PROTECTED_MOUNTS'))}) (C {(grep)} {(-qs)} { (DQ ('^') ($ VSub_DollarName '$DEV') (' ') ($ VSub_DollarName '$MTPT') (' ') ) } ) ] negated: F ) (command.ControlFlow token: <ControlFlow_Continue continue> ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$MTPT'))} arms: [ (case_arm pat_list: [ {(/)} {(/proc)} {(/dev)} {(/.dev)} {(/dev/pts)} {(/dev/shm)} {(/dev/.static/dev)} {(/proc/) (Lit_Star '*')} {(/sys)} {(/sys/) (Lit_Star '*')} {(/run)} {(/run/) (Lit_Star '*')} {(/dev/vcs)} ] action: [(command.ControlFlow token:<ControlFlow_Continue continue>)] ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$FSTYPE'))} arms: [ (case_arm pat_list: [ {(proc)} {(procfs)} {(linprocfs)} {(sysfs)} {(usbfs)} {(usbdevfs)} {(devpts)} ] action: [(command.ControlFlow token:<ControlFlow_Continue continue>)] ) (case_arm pat_list: [{(tmpfs)}] action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TMPFS_MTPTS) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$TMPFS_MTPTS') ) } ) ] ) ] ) (case_arm pat_list: [{(Lit_Star '*')}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (C {(echo)} {(DQ ($ VSub_DollarName '$PROTECTED_MOUNTS'))}) (C {(grep)} {(-qs)} {(DQ ('^') ($ VSub_DollarName '$DEV') (' '))} ) ] negated: F ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:WEAK_MTPTS) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$WEAK_MTPTS') ) } ) ] ) ] ) ] else_action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:REG_MTPTS) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$REG_MTPTS') ) } ) ] ) ] ) ] ) ] ) ] ) redirects: [(redir.Redir op:<Redir_Less '<'> fd:16777215 arg_word:{(/proc/mounts)})] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$TMPFS_MTPTS'))} {(Lit_RBracket ']')} ) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_RBracket ']')} ) ] action: [ (C {(log_action_begin_msg)} {(DQ ('Unmounting temporary filesystems'))}) (C {(fstab-decode)} {(umount)} {($ VSub_DollarName '$TMPFS_MTPTS')}) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now unmount temporary filesystems'))}) (C {(fstab-decode)} {(umount)} {(-v)} {($ VSub_DollarName '$TMPFS_MTPTS')}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_RBracket ']')} ) ] action: [ (C {(log_action_begin_msg)} {(DQ ('Deactivating swap'))}) (command.Simple words: [{(swapoff)} {(-a)}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})] ) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now deactivate swap'))}) (C {(swapoff)} {(-a)} {(-v)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$WEAK_MTPTS'))} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_RBracket ']')} ) ] action: [ (C {(log_action_begin_msg)} {(DQ ('Unmounting weak filesystems'))}) (C {(fstab-decode)} {(umount)} {(-r)} {(-d)} {($ VSub_DollarName '$WEAK_MTPTS')} ) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now unmount weak filesystems'))}) (C {(fstab-decode)} {(umount)} {(-v)} {(-r)} {(-d)} {($ VSub_DollarName '$WEAK_MTPTS')} ) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$REG_MTPTS'))} {(Lit_RBracket ']')}) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_RBracket ']')} ) ] action: [ (C {(log_action_begin_msg)} {(DQ ('Unmounting local filesystems'))}) (C {(fstab-decode)} {(umount)} {(-f)} {(-r)} {(-d)} {($ VSub_DollarName '$REG_MTPTS')} ) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now unmount local filesystems'))}) (C {(fstab-decode)} {(umount)} {(-f)} {(-v)} {(-r)} {(-d)} {($ VSub_DollarName '$REG_MTPTS')} ) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] ) ] ) ] ) ] ) ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list:[{(start)} {(status)}]) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: [ (command.Simple words: [{(echo)} {(DQ ("Error: argument '") ($ VSub_Number '$1') ("' not supported"))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] ) (case_arm pat_list:[{(stop)}] action:[(C {(do_stop)})]) (case_arm pat_list: [{(Lit_Star '*')}] action: [ (command.Simple words: [{(echo)} {(DQ ('Usage: ') ($ VSub_Number '$0') (' start|stop'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] ) ] ) (C {(Lit_Other ':')}) ] )