Sign in
coral
/
mendel-minimal
/
8641d60e2d7287c4d23fab8156007362d67709b8
/
.
/
etc
/
runonce.d
/
98-set-datetime
blob: 9cdfd7925468fb51ac9f48e2fc3d2f9b048023a5 [
file
] [
log
] [
blame
]
#!/bin/bash
PROGNAME
=
$
(
basename $
(
readlink
-
f $0
))
date
--
set
=
"$(stat /lost+found |grep Change |sed -e 's/^Change: //g' -e 's/+0000//g')"
timedatectl
set
-
ntp false
timedatectl
set
-
time
"$(date '+%Y-%m-%d %H:%M:%S')"
timedatectl
set
-
ntp true