Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

OS-1972 ntp server check could be improved

  • Loading branch information...
commit b425d4e00eef0d4a5f5e5ab28f5ed17983f371ee 1 parent 3b269bf
@wesolows wesolows authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 ntp/Solaris/ntp
View
6 ntp/Solaris/ntp
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.