mirror of
https://github.com/fritz-smh/yi-hack
synced 2025-07-29 12:46:48 +00:00
Fix #5
This commit is contained in:
parent
3cd87f2f12
commit
5bcb9ad705
@ -281,11 +281,15 @@ log "Done"
|
|||||||
|
|
||||||
### configure time on a NTP server
|
### configure time on a NTP server
|
||||||
log "Get time from a NTP server..."
|
log "Get time from a NTP server..."
|
||||||
|
NTP_SERVER=$(get_config NTP_SERVER)
|
||||||
|
log "But first, test the NTP server '${NTP_SERVER}':"
|
||||||
|
ping -c1 ${NTP_SERVER} >> ${LOG_FILE}
|
||||||
log "Previous datetime is $(date)"
|
log "Previous datetime is $(date)"
|
||||||
ntpd -q -p 0.uk.pool.ntp.org
|
ntpd -q -p ${NTP_SERVER}
|
||||||
log "Done"
|
log "Done"
|
||||||
log "New datetime is $(date)"
|
log "New datetime is $(date)"
|
||||||
|
|
||||||
|
|
||||||
### set the root password
|
### set the root password
|
||||||
root_pwd=$(get_config ROOT_PASSWORD)
|
root_pwd=$(get_config ROOT_PASSWORD)
|
||||||
[ $? -eq 0 ] && echo "root:$root_pwd" | chpasswd
|
[ $? -eq 0 ] && echo "root:$root_pwd" | chpasswd
|
||||||
|
@ -23,6 +23,9 @@ GATEWAY=192.168.1.254
|
|||||||
# -boff -yoff : yellow off
|
# -boff -yoff : yellow off
|
||||||
LED_WHEN_READY=-boff -bon
|
LED_WHEN_READY=-boff -bon
|
||||||
|
|
||||||
|
### NTP server
|
||||||
|
NTP_SERVER=0.uk.pool.ntp.org
|
||||||
|
|
||||||
### Debug
|
### Debug
|
||||||
# Debug mode, keep it to 'no' unless you known what you do
|
# Debug mode, keep it to 'no' unless you known what you do
|
||||||
# Values : yes|no
|
# Values : yes|no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user