From 42d07e2d3b05c52b5a444ba1e41e9b4e426eb4ca Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 22 Dec 2008 22:58:34 +0000 Subject: The rdate applet uses a time server which does not need to be the same as the configured ntp server (time is a TCP/37 service often offered as built-in (x)initd functionality). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2452 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/bin/servconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'initramfs/stage3-stuff/bin/servconfig') diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index 7a10a8b5..1c4b43cf 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -214,8 +214,10 @@ config_bt # network(ed) services if [ -n "$ntp_servers" ]; then - rdate -s "$ntp_servers" - hwclock -w + # rdate uses the time protocol (port 37 which is not the ntp standard port) + # thus not every standard ntp-server might offer this service) + ( rdate -s "$ntp_servers" 2>/dev/null || error "$scfg_rdate" nonfatal + hwclock -w ) & fi # network time service (ntp) configuration file -- cgit v1.2.3-55-g7522