# HG changeset patch # User Christophe Lincoln # Date 1398870920 -7200 # Node ID b25e160aa6d6424c3415931ba83fb770cc0778c5 # Parent 83a8e36745878171dd1fd9265cb242d4639fd8cf Use Busybox ntpd to set system clock diff -r 83a8e3674587 -r b25e160aa6d6 rootfs/etc/init.d/system.sh --- a/rootfs/etc/init.d/system.sh Wed Apr 30 16:37:40 2014 +0200 +++ b/rootfs/etc/init.d/system.sh Wed Apr 30 17:15:20 2014 +0200 @@ -37,10 +37,10 @@ echo -n "Setting time zone to: $tz" export TZ=${tz}; status -# Rdate for device without HW clock -if fgrep -q ' rdate ' /proc/cmdline; then +# For device without HW clock +if [ "$NTPD_HOST" ]; then echo "Syncing system time..." - rdate -s tick.greyware.com 2>/dev/null; status + ntpd -q -p ${$NTPD_HOST}; status fi # DEPRECATED: Xorg dont need any config file anymore but the 60-Keyboard.conf diff -r 83a8e3674587 -r b25e160aa6d6 rootfs/etc/rcS.conf --- a/rootfs/etc/rcS.conf Wed Apr 30 16:37:40 2014 +0200 +++ b/rootfs/etc/rcS.conf Wed Apr 30 17:15:20 2014 +0200 @@ -17,5 +17,8 @@ # X Login manager: slim or empty to disable X LOGIN_MANAGER="slim" +# Network time server to update system clock on boot. +NTPD_HOST="0.pool.ntp.org" + # Pre login bold message. MESSAGE="Welcome to SliTaz ARM"