The Thursday 2005-01-27 at 21:09 +0100, pelibali wrote:
Was nice to see your alternative solution; thanks for taking your time, and posting :)
Welcome :-)
The only thing "disturbed" me a little was, that being extreme green to this topic: I would really appreciate English comments in the script, in case I get stuck while I will checkup your code deeper during the weekend, or would like to 'learn'... I had 5 years of Spanish at the elementary school, but it was really long time ago together with Russian; then the Latin-German-English combo erased most it:(
X'-) I just copy-pasted my script, but the relevant explanation was below. In fact, it is only part of it, I do a few things more. Ok, I'll translate the rest, but it is not really needed. # Esta bandera se usará en los script de conexion para sincronizar el # reloj por lo menos una vez despues de arrancar. # Se borra en '/etc/init.d/boot.local', y en éste guion se creará. This flag will be used in the connection scripts to synchronize the clock at least once after booting. It will be deleted in '/etc/init.d/boot.local' and created in this script. # Sincronizar la hora solo si es la primera vez que conectamos despues de arancar. # Tambien interesaria hacerlo si ya han pasado, pe, 4 horas desde la ultima sincronizacion. Synchronize time only if it is the first time we connect after booting up. It would be interesting do it again if it is, say, four hours after the last synchronization. # Esta bandera se usará en los script de conexion para sincronizar el # reloj por lo menos una vez despues de arrancar. # En este guion se borra, y luego se creará. This flag will be used in the connection scripts to synchronize the clock at least once after booting. It will be deleted in this script and created later on. Ok? ;-) Ah... there are many manual pages in Linux only available in English. Some programs do not even allow translation. Internationalization in Linux seems to be low key. Pity.
Additional question would be still, that which SUSE version you have the attached time-sync code running?!
Any. I have it running on a 7.3, and later. The difference there is that the '/etc/init.d/xntpd ntptimeset' call has to be substituted with a direct call to '/usr/sbin/ntpdate' instead. The advantage of calling suse's script '/etc/init.d/xntpd' is that it uses the configuration file '/etc/ntp.conf', instead of giving the list of servers manually; then, if you choose to run the daemon instead, you don't need to change configurations. Another setting to know about is in '/etc/sysconfig/xntp': #XNTPD_INITIAL_NTPDATE="AUTO-2" XNTPD_INITIAL_NTPDATE="AUTO" With the default setting, only the first two servers will be polled. I prefer using all. Ah, I almost forgot. My script "plays" a cute clock tick-tack sound while syncing. The sound files come from an older SuSE distro, perhaps 6.4. Choose any sound file of your liking, or just comment out the line. As the script runs in the background, automatically, I like to know what it is doing O:-) -- Cheers, Carlos Robinson