slitaz-arm rev 151

Use Busybox ntpd to set system clock
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 30 17:15:20 2014 +0200 (2014-04-30)
parents 83a8e3674587
children cb9ab82f669d
files rootfs/etc/init.d/system.sh rootfs/etc/rcS.conf
line diff
     1.1 --- a/rootfs/etc/init.d/system.sh	Wed Apr 30 16:37:40 2014 +0200
     1.2 +++ b/rootfs/etc/init.d/system.sh	Wed Apr 30 17:15:20 2014 +0200
     1.3 @@ -37,10 +37,10 @@
     1.4  echo -n "Setting time zone to: $tz"
     1.5  export TZ=${tz}; status
     1.6  
     1.7 -# Rdate for device without HW clock
     1.8 -if fgrep -q ' rdate ' /proc/cmdline; then
     1.9 +# For device without HW clock
    1.10 +if [ "$NTPD_HOST" ]; then
    1.11  	echo "Syncing system time..."
    1.12 -	rdate -s tick.greyware.com 2>/dev/null; status
    1.13 +	ntpd -q -p ${$NTPD_HOST}; status
    1.14  fi
    1.15  
    1.16  # DEPRECATED: Xorg dont need any config file anymore but the 60-Keyboard.conf
     2.1 --- a/rootfs/etc/rcS.conf	Wed Apr 30 16:37:40 2014 +0200
     2.2 +++ b/rootfs/etc/rcS.conf	Wed Apr 30 17:15:20 2014 +0200
     2.3 @@ -17,5 +17,8 @@
     2.4  # X Login manager: slim or empty to disable X
     2.5  LOGIN_MANAGER="slim"
     2.6  
     2.7 +# Network time server to update system clock on boot.
     2.8 +NTPD_HOST="0.pool.ntp.org"
     2.9 +
    2.10  # Pre login bold message.
    2.11  MESSAGE="Welcome to SliTaz ARM"