Commit c5c0ff18 authored by Mike Hibler's avatar Mike Hibler
Browse files

If no ntpd command line is give, don't try to start ntpd

(i.e., the script will just run ntpdate)
parent bc02efc9
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
......@@ -55,6 +55,12 @@ my @tmccresults;
# Since this is a wrapper, we have to try to start ntp no matter what.
#
sub ntpstart () {
#
# No arguments means don't run ntpd, we just wanted to run ntpdate
#
return 0
if (!@ARGV);
#
# XXX FreeBSD 7 prepends "-c <configfile>" to the arguments
# which in our case means before the command name!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment