• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5. $(dirname $0)/time.sh
6
7if grep -q '^ok$' "$1" 2>/dev/null; then
8	# Take down tlsdated
9	kill -TERM $PPID
10	exit 1
11fi
12
13if ! grep -q '^first-fail$' "$1" 2>/dev/null; then
14	echo 'first-fail' > "$1"
15	exit 2
16fi
17
18echo 'ok' >> "$1"
19print_time $(date +%s)
20exit 0
21