mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
connman: add hardware clock synchronization to network init
This commit is contained in:
parent
bd497506e2
commit
7ff8d77aa8
@ -189,6 +189,16 @@ fi
|
||||
[ -f "$DEBUG_CONNMAN_PROFILE" ] && cp $DEBUG_CONNMAN_PROFILE $CONNMAN_PROFILE
|
||||
[ -f "$DEBUG_CONNMAN_PROFILE" ] && mv $DEBUG_CONNMAN_PROFILE ${DEBUG_CONNMAN_PROFILE}_saved
|
||||
|
||||
# set hwclock
|
||||
if [ -f /proc/driver/rtc ]; then
|
||||
(
|
||||
# sleep 30 seconds before hw clock is synced
|
||||
usleep 30000000
|
||||
progress "syncing hardware clock with system clock"
|
||||
/sbin/hwclock --systohc
|
||||
)&
|
||||
fi
|
||||
|
||||
# starting Connection manager
|
||||
progress "starting Connection manager"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user