(command.CommandList children: [ (C {(.)} {(/lib/lsb/init-functions)}) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/init/mount-functions.sh)}) (command.FuncDef name: do_wait_async_mount body: (command.BraceGroup children: [ (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:waitnfs) op:Equal rhs:(word.Empty))] ) (command.ForEach iter_name: file iter_words: [ { (DQ (word_part.CommandSub left_token: <Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {(eval)} {(ls)} { (word_part.CommandSub left_token: <Left_DollarParen '$('> command_list: (command.CommandList children:[(C {(fstab_files)})]) ) } ) ] ) ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(-f)} {(DQ ($ VSub_DollarName '$file'))} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.WhileUntil keyword: <KW_While while> cond: [ (command.Sentence child: (C {(read)} {(DEV)} {(MTPT)} {(FSTYPE)} {(OPTS)} {(REST)}) terminator: <Op_Semi ';'> ) ] body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ VSub_DollarName '$DEV'))} arms: [ (case_arm pat_list: [ {(DQ )} {(word_part.EscapedLiteral token:<Lit_EscapedChar '\\#'>) (Lit_Star '*') } ] action: [ (command.ControlFlow token: <ControlFlow_Continue continue> ) ] ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$OPTS'))} arms: [ (case_arm pat_list: [ {(noauto)} {(Lit_Star '*') (Lit_Comma ',') (noauto)} {(noauto) (Lit_Comma ',') (Lit_Star '*')} {(Lit_Star '*') (Lit_Comma ',') (noauto) (Lit_Comma ',') (Lit_Star '*') } ] action: [ (command.ControlFlow token: <ControlFlow_Continue continue> ) ] ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$FSTYPE'))} arms: [ (case_arm pat_list: [ {(nfs)} {(nfs4)} {(smbfs)} {(cifs)} {(coda)} {(ncp)} {(ncpfs)} {(ocfs2)} {(gfs)} {(ceph)} ] ) (case_arm pat_list: [{(Lit_Star '*')}] action: [ (command.ControlFlow token: <ControlFlow_Continue continue> ) ] ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$MTPT'))} arms: [ (case_arm pat_list: [{(/usr/local)} {(/usr/local/) (Lit_Star '*')}] ) (case_arm pat_list: [{(/usr)} {(/usr/) (Lit_Star '*')}] action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:waitnfs) op: Equal rhs: { (DQ ($ VSub_DollarName '$waitnfs') (' ') ($ VSub_DollarName '$MTPT') ) } ) ] ) ] ) (case_arm pat_list: [{(/var)} {(/var/) (Lit_Star '*')}] action: [ (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:waitnfs) op: Equal rhs: { (DQ ($ VSub_DollarName '$waitnfs') (' ') ($ VSub_DollarName '$MTPT') ) } ) ] ) ] ) ] ) ] ) redirects: [ (redir.Redir op: <Redir_Less '<'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$file'))} ) ] ) ] ) ] ) ] ) ) (command.Assignment pairs: [(assign_pair lhs:(lhs_expr.LhsName name:TIMEOUT) op:Equal rhs:{(900)})] ) (command.ForEach iter_name: mountpt iter_words: [{($ VSub_DollarName '$waitnfs')}] do_arg_iter: F body: (command.DoGroup children: [ (C {(log_action_begin_msg)} {(DQ ('Waiting for ') ($ VSub_DollarName '$mountpt'))}) (command.WhileUntil keyword: <KW_While while> cond: [ (command.Sentence child: (command.Pipeline children: [(C {(mountpoint)} {(-q)} {($ VSub_DollarName '$mountpt')})] negated: T ) terminator: <Op_Semi ';'> ) ] body: (command.DoGroup children: [ (C {(sleep)} {(0.1)}) (command.Assignment pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TIMEOUT) op: Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Arith_Minus left: (arith_expr.ArithWord w: {($ VSub_DollarName '$TIMEOUT')} ) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) } ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {($ VSub_DollarName '$TIMEOUT')} {(-le)} {(0)} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(log_action_end_msg)} {(1)}) (command.ControlFlow token: <ControlFlow_Break break> ) ] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {($ VSub_DollarName '$TIMEOUT')} {(-gt)} {(0)} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [(C {(log_action_end_msg)} {(0)})] ) ] ) ] ) ) ] ) ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_LBracket '[')} {(no)} {(KW_Bang '!') (Lit_Other '=')} {(DQ ($ VSub_DollarName '$ASYNCMOUNTNFS'))} {(Lit_RBracket ']')} ) terminator: <Op_Semi ';'> ) ] action: [(C {(do_wait_async_mount)})] ) ] else_action: [ (command.Simple words: [{(/etc/network/if-up.d/mountnfs)}] more_env: [(env_pair name:FROMINITD val:{(yes)})] ) ] ) ] ) (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)} {(status)}]) (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 ':')}) ] )