(CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:BADYEAR) op:Equal rhs:{(no)} spids:[83])] spids: [83] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:HWCLOCKACCESS) op:Equal rhs:{(yes)} spids:[86])] spids: [86] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:HWCLOCKPARS) op:Equal rhs:{(EmptyPart)} spids:[89])] spids: [89] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:HCTOSYS_DEVICE) op:Equal rhs:{(rtc0)} spids:[91])] spids: [91] ) (C {(unset)} {(TZ)}) (FuncDef name: hwclocksh body: (BraceGroup children: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-x)} {(/sbin/hwclock)} {(Lit_Other ']')}) (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-r)} {(/etc/default/rcS)} {(Lit_Other ']')}) (C {(.)} {(/etc/default/rcS)}) ] ) (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-r)} {(/etc/default/hwclock)} {(Lit_Other ']')}) (C {(.)} {(/etc/default/hwclock)}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (FuncDef name: verbose_log_action_msg body: (BraceGroup children: [ (Sentence child: (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_action_msg)} {(DQ ($ VSub_At '$@'))}) ] ) terminator: <Op_Semi ';'> ) ] spids: [174] ) spids: [170 173] ) (Case to_match: {(DQ ($ VSub_Name '$BADYEAR'))} arms: [ (case_arm pat_list: [{(no)} {(DQ )}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:BADYEAR) op: Equal rhs: {(DQ )} spids: [216] ) ] spids: [216] ) ] spids: [210 214 220 16777215] ) (case_arm pat_list: [{(yes)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:BADYEAR) op: Equal rhs: {(DQ (--badyear))} spids: [226] ) ] spids: [226] ) ] spids: [223 224 231 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Sentence child: (C {(log_action_msg)} { (DQ ('unknown BADYEAR setting: ') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ($ VSub_Name '$BADYEAR') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ) terminator: <Op_Semi ';'> ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [234 235 251 16777215] ) ] spids: [201 207 254] ) (Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (AndOr ops: [Op_DAmp Op_DAmp] children: [ (C {(Lit_Other '[')} {(-w)} {(/etc)} {(Lit_Other ']')}) (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(/etc/adjtime)} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(/etc/adjtime)} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(printf)} { (DQ ('0.0 0 0.0') (Lit_Other '\\') (n0) (Lit_Other '\\') (nUTC) (Lit_Other '\\') (n) ) } ] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/etc/adjtime)} spids: [329] ) ] ) ] spids: [16777215 314] ) ] spids: [16777215 334] ) (If arms: [ (if_arm cond: [ (Sentence child: (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-d)} {(/run/udev)} {(Lit_Other ']')}) (C {(Lit_Other '[')} {(-d)} {(/dev/.udev)} {(Lit_Other ']')}) ] ) terminator: <Op_Semi ';'> ) ] action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [16777215 359] ) ] spids: [16777215 367] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$HWCLOCKACCESS'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(log_action_msg)} {(DQ ('Setting the system clock'))}) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (C {(sed)} {(SQ <'3!d'>)} {(/etc/adjtime)}) (C {(grep)} {(-q)} {(SQ <'^UTC$'>)}) ] negated: F ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:UTC) op: Equal rhs: {(DQ (--utc))} spids: [426] ) ] spids: [426] ) ] spids: [16777215 423] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:UTC) op: Equal rhs: {(EmptyPart)} spids: [435] ) ] spids: [435] ) ] spids: [432 438] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(/sbin/hwclock)} {(--rtc) (Lit_Other '=') (/dev/) ($ VSub_Name '$HCTOSYS_DEVICE') } {(--hctosys)} {($ VSub_Name '$HWCLOCKPARS')} {($ VSub_Name '$BADYEAR')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(verbose_log_action_msg)} { (DQ ('System Clock set to: ') (CommandSubPart command_list: (CommandList children: [(C {(date)} {($ VSub_Name '$UTC')})] ) left_token: <Left_Backtick '`'> spids: [480 484] ) ) } ) ] spids: [16777215 469] ) ] else_action: [ (C {(log_warning_msg)} { (DQ ('Unable to set System Clock to: ') (CommandSubPart command_list: (CommandList children: [(C {(date)} {($ VSub_Name '$UTC')})] ) left_token: <Left_Backtick '`'> spids: [495 499] ) ) } ) ] spids: [488 503] ) ] spids: [16777215 387] ) ] else_action: [(C {(verbose_log_action_msg)} {(DQ ('Not setting System Clock'))})] spids: [506 516] ) ] spids: [267 268 519 16777215] ) (case_arm pat_list: [{(stop)} {(restart)} {(reload)} {(force-reload)}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$HWCLOCKACCESS'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(log_action_msg)} {(DQ ('Saving the system clock'))}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(/sbin/hwclock)} {(--rtc) (Lit_Other '=') (/dev/) ($ VSub_Name '$HCTOSYS_DEVICE') } {(--systohc)} {($ VSub_Name '$HWCLOCKPARS')} {($ VSub_Name '$BADYEAR')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(verbose_log_action_msg)} { (DQ ('Hardware Clock updated to ') (CommandSubPart command_list: (CommandList children:[(C {(date)})]) left_token: <Left_Backtick '`'> spids: [610 612] ) ) } ) ] spids: [16777215 603] ) ] spids: [16777215 616] ) ] spids: [16777215 577] ) ] else_action: [(C {(verbose_log_action_msg)} {(DQ ('Not saving System Clock'))})] spids: [619 629] ) ] spids: [522 529 632 16777215] ) (case_arm pat_list: [{(show)}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$HWCLOCKACCESS'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(/sbin/hwclock)} {(--rtc) (Lit_Other '=') (/dev/) ($ VSub_Name '$HCTOSYS_DEVICE')} {(--show)} {($ VSub_Name '$HWCLOCKPARS')} {($ VSub_Name '$BADYEAR')} ) ] spids: [16777215 655] ) ] spids: [16777215 672] ) ] spids: [635 636 675 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (C {(log_success_msg)} {(DQ ('Usage: hwclock.sh {start|stop|reload|force-reload|show}'))} ) (C {(log_success_msg)} {(DQ (' start sets kernel (system) clock from hardware (RTC) clock'))} ) (C {(log_success_msg)} { (DQ ( ' stop and reload set hardware (RTC) clock from kernel (system) clock' ) ) } ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [678 679 708 16777215] ) ] spids: [258 264 711] ) ] spids: [110] ) spids: [106 109] ) (C {(hwclocksh)} {(DQ ($ VSub_At '$@'))}) ] )