#!/bin/sh # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. . $(dirname $0)/time.sh if grep -q '^ok$' "$1" 2>/dev/null; then # Take down tlsdated kill -TERM $PPID exit 1 fi echo 'ok' > "$1" sleep 1 print_time $(date +%s) exit 0