<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
ok, I just set the variable  NTPDATE_USE_NTP_CONF to "no"<br><br>and then I changed the server in $NTPSERVERS.<br><br>Thank you very much!<br><br><br>> Date: Wed, 17 Sep 2008 21:21:47 +0800<br>> From: punkytse@punknix.com<br>> To: cotarelo2@hotmail.com<br>> Subject: Re: [Voyage-linux] NTP date synchronization doesn't work depending on      the network<br>> <br>> Hi Jorge,<br>> <br>> I don't understand.  Why setting $NTPSERVERS in /etc/default/ntpdate <br>> won't work?<br>> <br>> Regards,<br>> Punky<br>> <br>> <br>> Jorge Peña wrote:<br>> > Hello again,<br>> ><br>> > There  is no /etc/ntp.conf<br>> ><br>> > and<br>> ><br>> > in /etc/default/ntpdate the variable : NTPDATE_USE_NTP_CONF is set to <br>> > yes (it should take the servers from /etc/ntp.conf but it doesn't <br>> > exist this file)<br>> ><br>> > I found also in a script in: /etc/network/if-up.d/ntpdate<br>> ><br>> > #!/bin/sh<br>> ><br>> > if [ ! -x /usr/sbin/ntpdate-debian ]; then<br>> >         exit 0<br>> > fi<br>> ><br>> > if [ "$METHOD" = loopback ]; then<br>> >         exit 0<br>> > fi<br>> ><br>> > # This is a heuristic:  The idea is that if a static interface is brought<br>> > # up, that is a major event, and we can put in some extra effort to fix<br>> > # the system time.  Feel free to change this, especially if you regularly<br>> > # bring up new network interfaces.<br>> > if [ "$METHOD" = static ]; then<br>> >         OPTS="-b"<br>> > fi<br>> ><br>> > /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null &<br>> ><br>> ><br>> > I also checked /usr/sbin/ntpdate-debian this scipt contains:<br>> ><br>> > #!/bin/sh<br>> ><br>> > set -e<br>> ><br>> > if [ -r /etc/default/ntpdate ]; then<br>> >         . /etc/default/ntpdate<br>> > fi<br>> ><br>> > if [ "$NTPDATE_USE_NTP_CONF" = yes ]; then<br>> >         if [ -r /etc/ntp.conf.dhcp ]; then<br>> >                 file=/etc/ntp.conf.dhcp<br>> >         elif [ -r /etc/ntp.conf ]; then<br>> >                 file=/etc/ntp.conf<br>> >         fi<br>> >         if [ -n "$file" ]; then<br>> >                 NTPSERVERS=$(sed -rne 's/^(server|peer) <br>> > ([-_.[:alnum:]]+).*$/\2/p' "$file" | grep -v '^127\.127\<br>> >         fi<br>> > elif [ -r /etc/default/ntpdate.dhcp ]; then<br>> >         . /etc/default/ntpdate.dhcp<br>> > fi<br>> ><br>> > exec /usr/sbin/ntpdate $NTPOPTIONS "$@" $NTPSERVERS<br>> ><br>> ><br>> > But there is also not the file : /etc/ntp.conf.dhcp so I don't know <br>> > from where is getting the servers...<br>> ><br>> > Thank you again,<br>> > Jorge<br>> ><br>> ><br>> > > Date: Wed, 17 Sep 2008 15:43:48 +0800<br>> > > From: punkytse@punknix.com<br>> > > To: cotarelo2@hotmail.com<br>> > > CC: voyage-linux@voyage.hk<br>> > > Subject: Re: [Voyage-linux] NTP date synchronization doesn't work <br>> > depending on the network<br>> > ><br>> > > Hi Jorge,<br>> > ><br>> > > If you use ntpdate, please take a look at /etc/default/ntpdate<br>> > ><br>> > > If you use ntpd, most probably /etc/ntp.conf<br>> > ><br>> > > Regards,<br>> > > Punky<br>> > ><br>> > > Jorge Peña wrote:<br>> > > > Hello List<br>> > > ><br>> > > > I have a ALIX board powered by a Voyage Linux 0.5.2<br>> > > ><br>> > > > Whenever I connect the box to a normal (cable) connection it gets the<br>> > > > time from the network perfectly.<br>> > > ><br>> > > > Whenever I connect the same box it to a internal firewalled network<br>> > > > and it boots, it doesn't get time from the network. I think I need to<br>> > > > change the server to a local machine in my own network which has a<br>> > > > time server. I tried to add it to the configuration in voyage but <br>> > I am<br>> > > > not quite sure where do I need to add the server in the configuration<br>> > > > file of ntp in voyage.<br>> > > ><br>> > > > Any hint?<br>> > > ><br>> > > > Regards,<br>> > > > Jorge<br>> > > ><br>> > > > <br>> > ------------------------------------------------------------------------<br>> > > > ¡Trónchate de risa con los mejores capítulos de South Park en MSN<br>> > > > Vídeo!<br>> > > > <br>> > <http://video.msn.com/?mkt=es-es&vid=42a9e969-45ad-4c31-bff9-57629e71fac8&playlist=videoByUuids:uuids:e1daa69b-331b-4e99-8325-c936aaee9f97%2Cad4cb47a-90a8-4b2c-88da-116d2059f4a2%2Cddaade1e-82b2-4914-8277-35e45198f5c6%2C42860247-e337-4384-94d8-fa444cb4aea7&from=hotmail&tab=s1207179071824> <br>> ><br>> > > ><br>> > > > <br>> > ------------------------------------------------------------------------<br>> > > ><br>> > > > _______________________________________________<br>> > > > Voyage-linux mailing list<br>> > > > Voyage-linux@list.voyage.hk<br>> > > > http://list.voyage.hk/mailman/listinfo/voyage-linux<br>> > > ><br>> > ><br>> > ><br>> > > --<br>> > > Regards,<br>> > > Punky<br>> > ><br>> > > Voyage Solutions (http://solution.voyage.hk)<br>> > > * Embedded Solutions and Systems<br>> > > - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX<br>> > > - Network Engineering, Development Platform and Consultation<br>> > ><br>> > ><br>> > ><br>> ><br>> > ------------------------------------------------------------------------<br>> > ¡Haz tu clic solidario y ayuda a África! ¡Puedes empezar ahora! <br>> > <http://www.unclicsolidario.com/><br>> <br><br /><hr />Juega a las preguntas de Live Quiz con tus contactos de Messenger <a href='http://www.vivelive.com/LiveQuiz/' target='_new'>¡Empieza ahora!</a></body>
</html>