mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
20 lines
387 B
Bash
20 lines
387 B
Bash
#!/bin/sh
|
|
#
|
|
# set time
|
|
#
|
|
# runlevels: openelec, text, debug
|
|
|
|
. /etc/sysconfig
|
|
|
|
progress "saving Starttime"
|
|
|
|
ADJTIME=/etc/adjtime
|
|
|
|
#. /etc/funcs
|
|
|
|
if [ -x /sbin/hwclock ]; then
|
|
make_persistent file ${ADJTIME} /var/data/config/adjtime create
|
|
[ -r ${ADJTIME} ] && ! ( grep -q "LOCAL" ${ADJTIME} || grep -q "UTC" ${ADJTIME} ) && echo "UTC" >>${ADJTIME}
|
|
/sbin/hwclock --hctosys
|
|
fi
|