mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
date init script: try twice before giving up on setting initial date
This commit is contained in:
parent
e77e1eb17e
commit
5b9dc6adb4
@ -50,7 +50,7 @@ set_current_date_ntp() {
|
||||
|
||||
start_http() {
|
||||
msg_begin "Setting current date using http"
|
||||
set_current_date_http
|
||||
set_current_date_http || set_current_date_http
|
||||
test $? == 0 && msg_done "$(date)" || msg_fail
|
||||
|
||||
msg_begin "Starting http date updater"
|
||||
@ -76,7 +76,7 @@ start_ntp() {
|
||||
rm ${ntp_conf}.tmp
|
||||
|
||||
msg_begin "Setting current date using ntp"
|
||||
set_current_date_ntp
|
||||
set_current_date_ntp || set_current_date_ntp
|
||||
test $? == 0 && msg_done "$(date)" || msg_fail
|
||||
|
||||
msg_begin "Starting ntpd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user