Hi Istvan,
Hello:
I am interested if this is possible, and how, in openSUSE 13.1 and 13.2 systems:
The computer is mostly offline and is connected to the network for limited periods only (by USB mobile net device). The computer's clock is inaccurate and shows large differences (tens of minutes), which is becoming worse at every bootup. Instead of playing with adjtime etc, I would like the system to synchronize the time automatically with an ntp server when the computer is connected to the network. I am afraid if I turn on ntp daemon, it causes long delays at boot if net connection isn't available.
you could copy the ntpd service file and replace the ntpd start with a script of your own, which checks internet connection in the first place and starts ntpd afterwards. Or you could just switch off ntpd's startup check for timeservers, leave it running all the time and trigger setting the clock with some command line tool like ntpdate.
Thanks,
Istvan
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org