(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH) op: Equal rhs: {(/sbin) (Lit_Other ':') (/bin)} ) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/init/tmpfs.sh)}) (C {(.)} {(/lib/init/mount-functions.sh)}) (C {(.)} {(/lib/init/swap-functions.sh)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-r)} {(/etc/default/locale)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [(C {(.)} {(/etc/default/locale)}) (C {(export)} {(LANG)})] ) ] ) (command.FuncDef name: do_start body: (command.BraceGroup children: [ (command.FuncDef name: mount_all_local body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(mountpoint)} {(-q)} {(/usr)}) terminator: <Op_Semi ';'> ) ] action: [(C {(mount)} {(-o)} {(remount)} {(/usr)})] ) ] ) (C {(mount)} {(-a)} {(-t)} {(nonfs) (Lit_Comma ',') (nfs4) (Lit_Comma ',') (smbfs) (Lit_Comma ',') (cifs) (Lit_Comma ',') (ncp) (Lit_Comma ',') (ncpfs) (Lit_Comma ',') (coda) (Lit_Comma ',') (ocfs2) (Lit_Comma ',') (gfs) (Lit_Comma ',') (gfs2) (Lit_Comma ',') (ceph) } {(-O)} {(no_netdev)} ) ] ) ) (C {(pre_mountall)}) (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 ('Mounting local filesystems'))}) (C {(mount_all_local)}) (C {(log_action_end_msg)} {($ VSub_QMark '$?')}) ] ) ] else_action: [ (C {(log_daemon_msg)} {(DQ ('Will now mount local filesystems'))}) (C {(mount_all_local)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] ) (C {(post_mountall)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:INITCTL) op: Equal rhs: {(DQ (/run/initctl))} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-p)} {(DQ ($ VSub_DollarName '$INITCTL'))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(-f)} {(DQ (/usr/share/sysvinit/update-rc.d))} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (C {(rm)} {(-f)} {(DQ ($ VSub_DollarName '$INITCTL'))}) (C {(mknod)} {(-m)} {(600)} {(DQ ($ VSub_DollarName '$INITCTL'))} {(p)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PID) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(pidof)} {(-s)} {(/sbin/init)}) (C {(echo)} {(1)}) ] ) ] ) left_token: <Left_CommandSub '$('> ) ) } ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$PID'))} {(Lit_Other ']')}) (C {(kill)} {(-s)} {(USR1)} {(DQ ($ VSub_DollarName '$PID'))}) ] ) ] ) ] ) (C {(swaponagain)} {(SQ <swapfile>)}) (C {(mount_run)} {(mount_noupdate)}) (C {(mount_lock)} {(mount_noupdate)}) (C {(mount_shm)} {(mount_noupdate)}) (C {(mount_tmp)} {(mount_noupdate)}) ] ) ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list:[{(start)} {(DQ )}] action:[(C {(do_start)})]) (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)}) ] ) (case_arm pat_list:[{(stop)} {(status)}]) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand words: [{(echo)} {(DQ ('Usage: mountall.sh [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 ':')}) ] )