Try using ntpd since ntpdate doesn't always work

This commit is contained in:
Bob Lantz
2014-10-01 17:29:04 -07:00
parent ded25a9ef8
commit 92a4f2ddbf
+2 -1
View File
@@ -490,7 +490,8 @@ def disableNtpd( vm, prompt=Prompt, ntpserver='pool.ntp.org' ):
vm.sendline( 'sudo -n service ntp stop' )
vm.expect( prompt )
log( '* Setting clock from', ntpserver )
vm.sendline( 'sudo -n ntpdate ' + ntpserver )
# -gq: set and quit immediately
vm.sendline( 'sudo -n ntpd -gq ' + ntpserver )
vm.expect( prompt )
log( '* Waiting one second and running date command' )
vm.sendline( 'sleep 1 && date ' )