(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH spids:[31]) op: Equal rhs: {(/sbin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/bin)} spids: [31] ) ] spids: [31] ) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/lsb/init-functions)}) (C {(umask)} {(022)}) (command.FuncDef name: do_stop body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PROTECTED_MOUNTS spids:[63]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(sed)} {(-n)} {(SQ <':a;/^[^ ]* \\/ /!{H;n;ba};{H;s/.*//;x;s/\\n//;p}'>)} {(/proc/mounts)} ) ] ) left_token: <Left_CommandSub '$('> spids: [65 75] ) ) } spids: [63] ) ] spids: [63] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:WEAK_MTPTS spids:[79]) op: Equal rhs: {(DQ )} spids: [79] ) ] spids: [79] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:REG_MTPTS spids:[87]) op: Equal rhs: {(DQ )} spids: [87] ) ] spids: [87] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TMPFS_MTPTS spids:[92]) op: Equal rhs: {(DQ )} spids: [92] ) ] spids: [92] ) (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_Other '*')} {(/sys)} {(/sys/) (Lit_Other '*')} {(/run)} {(/run/) (Lit_Other '*')} {(/dev/vcs)} ] action: [(command.ControlFlow token:<ControlFlow_Continue continue>)] spids: [149 177 183 16777215] ) ] spids: [140 146 186] ) (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>)] spids: [198 211 217 16777215] ) (case_arm pat_list: [{(tmpfs)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TMPFS_MTPTS spids:[224]) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$TMPFS_MTPTS') ) } spids: [224] ) ] spids: [224] ) ] spids: [220 221 232 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] 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 keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:WEAK_MTPTS spids:[263]) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$WEAK_MTPTS') ) } spids: [263] ) ] spids: [263] ) ] spids: [16777215 260] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:REG_MTPTS spids:[274]) op: Equal rhs: { (DQ ($ VSub_DollarName '$MTPT') (' ') ($ VSub_DollarName '$REG_MTPTS') ) } spids: [274] ) ] spids: [274] ) ] spids: [271 282] ) ] spids: [235 236 285 16777215] ) ] spids: [189 195 288] ) ] spids: [112 291] ) redirects: [(redir.Redir op:<Redir_Less '<'> fd:16777215 arg_word:{(/proc/mounts)})] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$TMPFS_MTPTS'))} {(Lit_Other ']')}) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_Other ']')} ) ] 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 '$?')}) ] spids: [16777215 348] ) ] 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 '$?')}) ] spids: [370 394] ) ] spids: [16777215 330] ) ] spids: [16777215 397] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_Other ']')} ) ] action: [ (C {(log_action_begin_msg)} {(DQ ('Deactivating swap'))}) (command.SimpleCommand words: [{(swapoff)} {(-a)}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})] ) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] spids: [16777215 428] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now deactivate swap'))}) (C {(swapoff)} {(-a)} {(-v)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] spids: [451 473] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$WEAK_MTPTS'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_Other ']')} ) ] 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 '$?')}) ] spids: [16777215 522] ) ] 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 '$?')}) ] spids: [548 576] ) ] spids: [16777215 500] ) ] spids: [16777215 579] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$REG_MTPTS'))} {(Lit_Other ']')}) ] action: [ (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_Other ']')} ) ] 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 '$?')}) ] spids: [16777215 611] ) ] 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 '$?')}) ] spids: [639 669] ) ] spids: [16777215 593] ) ] spids: [16777215 672] ) ] spids: [60] ) spids: [55 59] ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list:[{(start)} {(status)}] spids:[686 689 696 16777215]) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: [ (command.SimpleCommand 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)}) ] spids: [699 704 724 16777215] ) (case_arm pat_list:[{(stop)}] action:[(C {(do_stop)})] spids:[727 728 734 16777215]) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand 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)}) ] spids: [737 738 758 16777215] ) ] spids: [677 683 760] ) (C {(Lit_Other ':')}) ] )