(CommandList children: [ (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PATH) op: Equal rhs: {(/usr/local/sbin) (Lit_Other ":") (/usr/local/bin) (Lit_Other ":") (/sbin) (Lit_Other ":") (/bin) (Lit_Other ":") (/usr/sbin) (Lit_Other ":") (/usr/bin) } spids: [41] ) ] spids: [41] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NAME) op: Equal rhs: {(DQ (unattended-upgrades-shutdown))} spids: [55] ) ] spids: [55] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DESC) op: Equal rhs: {(DQ ("unattended package upgrades shutdown"))} spids: [60] ) ] spids: [60] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SCRIPTNAME) op: Equal rhs: {(DQ (/etc/init.d/) ($ VSub_Name "$NAME"))} spids: [65] ) ] spids: [65] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SHUTDOWN_HELPER) op: Equal rhs: {(DQ (/usr/share/unattended-upgrades/unattended-upgrade-shutdown))} spids: [71] ) ] spids: [71] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-x)} {(/usr/bin/python3)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:PYTHON) op:Equal rhs:{(python3)} spids:[91])] spids: [91] ) ] spids: [-1 88] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:PYTHON) op:Equal rhs:{(python)} spids:[97])] spids: [97] ) ] spids: [94 100] ) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/lsb/init-functions)}) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)} {(restart)} {(force-reload)} {(status)}] spids: [130 137 144 -1] ) (case_arm pat_list: [{(stop)}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-e)} {($ VSub_Name "$SHUTDOWN_HELPER")} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) ] action: [ (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (no))} {(Lit_Other "]")} ) (C {(log_action_begin_msg)} {(DQ ("Checking for running ") ($ VSub_Name "$DESC"))} ) ] op_id: Op_DAmp ) (C {($ VSub_Name "$PYTHON")} {($ VSub_Name "$SHUTDOWN_HELPER")}) (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (no))} {(Lit_Other "]")} ) (C {(log_action_end_msg)} {($ VSub_QMark "$?")} {(DQ ($ VSub_Name "$NAME"))}) ] op_id: Op_DAmp ) ] spids: [-1 161] ) ] spids: [-1 220] ) ] spids: [146 147 223 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (SimpleCommand words: [ {(echo)} { (DQ ("Usage: ") ($ VSub_Name "$SCRIPTNAME") (" {start|stop|status|restart|force-reload}") ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[237])] ) (C {(exit)} {(3)}) ] spids: [225 226 246 -1] ) ] spids: [122 128 248] ) (C {(Lit_Other ":")}) ] )