(command.CommandList children: [ (C {<.>} {<'/lib/lsb/init-functions'>}) (C {<.>} {<'/lib/init/vars.sh'>}) (C {<.>} {<'/lib/init/mount-functions.sh'>}) (command.ShFunction name: do_wait_async_mount body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'waitnfs='> name:waitnfs) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [76] ) ] redirects: [] ) (command.ForEach iter_names: [file] iterable: (for_iter.Words words: [ { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<eval>} {<ls>} { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<fstab_files>}) right: <Id.Eof_RParen _> ) } ) right: <Id.Eof_RParen _> ) ) } ] ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-f>} {(DQ ($ Id.VSub_DollarName file))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (C {<read>} {<DEV>} {<MTPT>} {<FSTYPE>} {<OPTS>} {<REST>}) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ Id.VSub_DollarName DEV))} arms: [ (case_arm pat_list: [ {(DQ )} { (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\#'> ch: '#' ) <Id.Lit_Star '*'> } ] action: [ (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] spids: [144 149 155 -1] ) ] redirects: [] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName OPTS))} arms: [ (case_arm pat_list: [ {<noauto>} {<Id.Lit_Star '*'> <Id.Lit_Comma ','> <noauto>} {<noauto> <Id.Lit_Comma ','> <Id.Lit_Star '*'>} {<Id.Lit_Star '*'> <Id.Lit_Comma ','> <noauto> <Id.Lit_Comma ','> <Id.Lit_Star '*'> } ] action: [ (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] spids: [170 185 191 -1] ) ] redirects: [] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName FSTYPE))} arms: [ (case_arm pat_list: [ {<nfs>} {<nfs4>} {<smbfs>} {<cifs>} {<coda>} {<ncp>} {<ncpfs>} {<ocfs2>} {<gfs>} {<ceph>} ] action: [] spids: [206 225 228 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] spids: [231 232 238 -1] ) ] redirects: [] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName MTPT))} arms: [ (case_arm pat_list: [ {<'/usr/local'>} {<'/usr/local/'> <Id.Lit_Star '*'>} ] action: [] spids: [253 257 260 -1] ) (case_arm pat_list: [{<'/usr'>} {<'/usr/'> <Id.Lit_Star '*'>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'waitnfs='> name: waitnfs ) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName waitnfs) <' '> ($ Id.VSub_DollarName MTPT) ) } spids: [270] ) ] redirects: [] ) ] spids: [263 267 278 -1] ) (case_arm pat_list: [{<'/var'>} {<'/var/'> <Id.Lit_Star '*'>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'waitnfs='> name: waitnfs ) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName waitnfs) <' '> ($ Id.VSub_DollarName MTPT) ) } spids: [288] ) ] redirects: [] ) ] spids: [281 285 296 -1] ) ] redirects: [] ) ] ) redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {(DQ ($ Id.VSub_DollarName file))} ) ] ) ] spids: [101 114] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TIMEOUT='> name:TIMEOUT) op: assign_op.Equal rhs: {<900>} spids: [326] ) ] redirects: [] ) (command.ForEach iter_names: [mountpt] iterable: (for_iter.Words words:[{($ Id.VSub_DollarName waitnfs)}]) body: (command.DoGroup children: [ (C {<log_action_begin_msg>} {(DQ <'Waiting for '> ($ Id.VSub_DollarName mountpt))}) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline children: [(C {<mountpoint>} {<-q>} {($ Id.VSub_DollarName mountpt)})] negated: T stderr_indices: [] ) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (C {<sleep>} {<0.1>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'TIMEOUT='> name: TIMEOUT ) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: {($ Id.VSub_DollarName TIMEOUT)} right: {<Id.Lit_Digits 1>} ) ) } spids: [371] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName TIMEOUT)} {<-le>} {<0>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<log_action_end_msg>} {<1>}) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [384 397] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName TIMEOUT)} {<-gt>} {<0>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<log_action_end_msg>} {<0>})] spids: [415 428] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.Case to_match: {(DQ ($ Id.VSub_Number 1))} arms: [ (case_arm pat_list: [{<start>}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<no>} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName ASYNCMOUNTNFS))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<do_wait_async_mount>})] spids: [469 486] ) ] else_action: [ (command.Simple words: [{<'/etc/network/if-up.d/mountnfs'>}] redirects: [] more_env: [(env_pair name:FROMINITD val:{<yes>} spids:[495])] do_fork: T ) ] redirects: [] ) ] spids: [453 454 504 -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: [507 512 532 -1] ) (case_arm pat_list:[{<stop>} {<status>}] action:[] spids:[535 538 545 -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: [548 549 569 -1] ) ] redirects: [] ) (C {<Id.Lit_Colon ':'>}) ] )