Skip to content

Commit

Permalink
add debug statement for @Bender1061
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Oct 3, 2016
1 parent 6838c5c commit 3670bd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/oref0-set-system-clock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ checkNTP() { ntp-wait -n 1 -v || ( sudo /etc/init.d/ntp restart && ntp-wait -n 1
if ! checkNTP; then
# set system time to pump time if pump time is newer than the system time (by printing out the current epoch, and the epoch generated from the $CLOCK file, and using the most recent)
echo Setting system time to later of `date` or `cat $CLOCK`:
echo (date +%s; date -d `( cat $CLOCK; echo ) | sed 's/"//g'` +%s) | sort | tail -1 | while read line; do sudo date -s @$line; done;
(date +%s; date -d `( cat $CLOCK; echo ) | sed 's/"//g'` +%s) | sort | tail -1 | while read line; do sudo date -s @$line; done;
fi

0 comments on commit 3670bd9

Please sign in to comment.