From 90e07a7840311b3eec4981251c83688615eddf93 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Tue, 24 Apr 2001 19:40:39 +0000 Subject: [PATCH] Change prompt from `rtems> ' to `epics> ' Don't proceed until clock has been synchronized with NTP. --- src/libCom/osi/os/RTEMS/rtems_init.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/libCom/osi/os/RTEMS/rtems_init.c b/src/libCom/osi/os/RTEMS/rtems_init.c index 0352cfabe..3a6689ae4 100644 --- a/src/libCom/osi/os/RTEMS/rtems_init.c +++ b/src/libCom/osi/os/RTEMS/rtems_init.c @@ -240,7 +240,7 @@ Init (rtems_task_argument ignored) */ initConsole (); putenv ("TERM=xterm"); - putenv ("IOCSH_PS1=rtems> "); + putenv ("IOCSH_PS1=epics> "); putenv ("IOCSH_HISTSIZE=20"); /* @@ -250,8 +250,12 @@ Init (rtems_task_argument ignored) rtems_bsdnet_initialize_network (); printf ("***** Initializing TFTP *****\n"); rtems_bsdnet_initialize_tftp_filesystem (); - printf ("***** Initializing NTP *****\n"); - rtems_bsdnet_synchronize_ntp (0, 0); + for (;;) { + printf ("***** Initializing NTP *****\n"); + if (rtems_bsdnet_synchronize_ntp (0, 0) >= 0) + break; + epicsThreadSleep (10.0); + } printf ("***** Initializing syslog *****\n"); openlog ("IOC", LOG_CONS, LOG_DAEMON); syslog (LOG_NOTICE, "IOC started.");