Skip to content

Commit

Permalink
OS-1972 ntp server check could be improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith M Wesolowski committed Apr 4, 2013
1 parent 3b269bf commit b425d4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ntp/Solaris/ntp
Expand Up @@ -24,7 +24,9 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)ntp 1.1 09/05/17 SMI"

#
# Copyright (c) 2013 Joyent, Inc. All rights reserved.
#

# Standard prolog
Expand Down Expand Up @@ -66,7 +68,7 @@ while read; do
continue
fi
need_host_check=yes
if ping -- "$2" >/dev/null 2>/dev/null; then
if ntpdate -q -u -p 1 -t 5 -- "$2" >/dev/null 2>/dev/null; then
host_ok=yes
break;
fi
Expand Down

0 comments on commit b425d4e

Please sign in to comment.