(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:PATH) op: assign_op.Equal rhs: {(/sbin) (Id.Lit_Other ':') (/bin)} spids: [37] ) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/init/tmpfs.sh)}) (C {(.)} {(/lib/init/mount-functions.sh)}) (command.ShFunction name: mount_filesystems body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:MNTMODE) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number '$1'))} spids: [74] ) ] ) (C {(mount_run)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))}) (C {(mount_lock)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))}) (C {(domount)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))} {(Id.KW_Proc proc)} {(DQ )} {(/proc)} {(Id.KW_Proc proc)} {(DQ ('-onodev,noexec,nosuid'))} ) (command.If arms: [ (if_arm cond: [ (C {(grep)} {(-E)} {(-qs)} { (DQ (sysfs) (word_part.EscapedLiteral token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:167) ) ) } {(/proc/filesystems)} ) ] action: [ (C {(domount)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))} {(sysfs)} {(DQ )} {(/sys)} {(sysfs)} {(DQ ('-onodev,noexec,nosuid'))} ) ] spids: [157 173] ) ] ) (command.If arms: [ (if_arm cond: [(C {(Id.Lit_LBracket '[')} {(-d)} {(/sys/fs/pstore)} {(Id.Lit_RBracket ']')})] action: [ (C {(domount)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))} {(pstore)} {(DQ )} {(/sys/fs/pstore)} {(pstore)} {(DQ )} ) ] spids: [200 211] ) ] ) (command.If arms: [ (if_arm cond: [ (C {(Id.Lit_LBracket '[')} {(-d)} {(/sys/kernel/config)} {(Id.Lit_RBracket ']')}) ] action: [ (C {(domount)} {(DQ ($ Id.VSub_DollarName '$MNTMODE'))} {(configfs)} {(DQ )} {(/sys/kernel/config)} {(configfs)} {(DQ )} ) ] spids: [237 248] ) ] ) ] ) ) (command.Case to_match: {(DQ ($ Id.VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(DQ )}] action: [ (command.Simple words: [ {(echo)} {(DQ ("Warning: mountkernfs should be called with the 'start' argument."))} ] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:295) fd: -1 arg_word: {(2)} ) ] ) (C {(mount_filesystems)} {(mount_noupdate)}) ] spids: [284 286 304 -1] ) (case_arm pat_list: [{(start)}] action: [(C {(mount_filesystems)} {(mount_noupdate)})] spids: [307 308 316 -1] ) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: [(C {(mount_filesystems)} {(remount)})] spids: [319 324 332 -1] ) (case_arm pat_list:[{(stop)} {(status)}] spids:[335 338 345 -1]) (case_arm pat_list: [{(Id.Lit_Star '*')}] action: [ (command.Simple words: [{(echo)} {(DQ ('Usage: mountkernfs [start|stop]'))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:358) fd: -1 arg_word: {(2)} ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:362) arg_word: {(3)} ) ] spids: [348 349 367 -1] ) ] ) ] )