mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
linux: move init script to busybox
This commit is contained in:
parent
789922ec12
commit
ab50ef73d9
@ -10,10 +10,7 @@ progress "saving Starttime"
|
|||||||
|
|
||||||
ADJTIME=/etc/adjtime
|
ADJTIME=/etc/adjtime
|
||||||
|
|
||||||
#. /etc/funcs
|
|
||||||
|
|
||||||
if [ -x /sbin/hwclock ]; then
|
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}
|
[ -r ${ADJTIME} ] && ! ( grep -q "LOCAL" ${ADJTIME} || grep -q "UTC" ${ADJTIME} ) && echo "UTC" >>${ADJTIME}
|
||||||
/sbin/hwclock --hctosys
|
/sbin/hwclock --hctosys -f /dev/rtc
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user