cmd_rtc.sh: set the actual time from the host system
This commit is contained in:
parent
7812afa2e1
commit
dd370d23e9
1 changed files with 3 additions and 7 deletions
10
cmd_rtc.sh
10
cmd_rtc.sh
|
|
@ -1,9 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# year = 2025
|
EPOCH=$(date +%s)
|
||||||
# month = 02
|
|
||||||
# day = 18
|
echo "__sdlogger__ {\"cmd\": \"RTC\", \"epoch\": ${EPOCH}}" > /dev/kmsg
|
||||||
# hour = 14
|
|
||||||
# min = 59
|
|
||||||
# sec = 6
|
|
||||||
echo '__sdlogger__ {"cmd": "RTC", "epoch": 1739890746}' > /dev/kmsg
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue