[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux] Re: Problème d'heure (was: petit(s) truc(s) bien pratique(s) en NT)



...
Donc, il me semble que cela restreint le nombre de pistes ???
Oui.
Il suffirait de désactiver l'appel à hwclock lors du shutdown.

Est-ce que mon courroux pourra émouvoir les gurus ???
Le courroux ne sert jamais ta cause, tu n'en recevras point une réponse
plus prompte.

Bon, j'arrête de déconner ;-))

Alors, voici ma proposition:

modifie le fichier /etc/init.d/halt
et change la ligne

    if test "$GMT" != "YAST_ASK" -a "$START_XNTPD" = "yes" -a -n "$XNTPD_INITIAL_NTPDATE" ; then
        # write back to hardware clock and calculate adjtime
        /sbin/hwclock_wrapper --systohc $GMT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        rc_status
    fi

par

    if test "$GMT" != "YAST_ASK" -a "$START_XNTPD" = "yes" -a -n "$XNTPD_INITIAL_NTPDATE" ; then
        # write back to hardware clock and calculate adjtime
        #/sbin/hwclock_wrapper --systohc $GMT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        /bin/true
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        rc_status
    fi

Et tu fais pareil dans /etc/init.d/reboot

Voilà ;-)

Tu n'aurais pas XNTP actif, par hasard ?
Du moins dans /etc/rc.config par les variables START_XNTPD (à "yes")
et XNTPD_INITIAL_NTPDATE ?

--
  -o) Pascal Bleser   ATOS Origin/Aachen(DE) |
  /\\         <pascal.bleser@atosorigin.com> |
 _\_v <guru@linuxbe.org>                     |
---------------------------------------------|
Jesus saves,Buddha makes incremental backups :
---------------------------------------------'

_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux