-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-07-11 at 20:51 +0200, Joachim Schrod wrote:
ping -c1 www.google.com >/dev/null 2>&1 && ntpdate -w pool.ntp.org
might do the job.
Even simpler: call ntpdate directly; if there is no network, it will fail - - so what? ;-) An alternative I prefer is calling "rcntp ntptimeset" instead. It will use the "/etc/ntp.conf" to know the servers to set time from. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEtOi3tTMYHG2NR9URAt6WAKCRomtmBeS9G/QLdCotja3RVwWVTQCfTX6g BwY/XcrYEgfGgP181W7egHE= =OYBH -----END PGP SIGNATURE----- -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com