We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a441ce2 commit 3717762Copy full SHA for 3717762
overlay/etc/init.d/F01datetime
@@ -10,7 +10,7 @@ start() {
10
exit 1
11
fi
12
13
- if date -u -s "@$(stat -c%X "$OS_RELEASE_FILE")" >/dev/null; then
+ if date -u -s "@$(awk -F'=' '/^TIME_STAMP/{print $2}' "$OS_RELEASE_FILE")" >/dev/null; then
14
echo_info "$(date) (fail-safe)"
15
else
16
echo_error "Failed to set time"
0 commit comments