#!/bin/sh
if test $(id -u) != 0; then
 echo Error: You must be root to run this script!
 exit 1
fi
hwclock -s --localtime
#NTPSERVERS=ntp2.fau.de
NTPSERVERS=bonehed.lcs.mit.edu
echo NTPSERVERS=$NTPSERVERS > /etc/default/ntp-servers
update-rc.d -f ntpdate remove >/dev/null 2>&1
update-rc.d ntpdate defaults 2>/dev/null
/etc/init.d/ntpdate start 2>/dev/null
ntpdate -u -b $NTPSERVERS && hwclock --systohc
