J. Richard Barnette | f218474 | 2013-11-07 15:59:01 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright (c) 2013 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 | |
Chinglin Yu | e559b12 | 2021-01-07 18:56:06 +0800 | [diff] [blame] | 6 | SCRIPT_ROOT=$(dirname "$(readlink -f "$0")") |
| 7 | SCRIPT=${SCRIPT_ROOT}/performance/bootperf-bin/$(basename "$0") |
J. Richard Barnette | f218474 | 2013-11-07 15:59:01 -0800 | [diff] [blame] | 8 | |
Chinglin Yu | e559b12 | 2021-01-07 18:56:06 +0800 | [diff] [blame] | 9 | if [ ! -f "${SCRIPT}" ]; then |
| 10 | echo "${SCRIPT} not found." |
| 11 | echo "This script must be run inside the chroot. Aborting" |
J. Richard Barnette | f218474 | 2013-11-07 15:59:01 -0800 | [diff] [blame] | 12 | exit 1 |
| 13 | fi |
| 14 | |
Chinglin Yu | e559b12 | 2021-01-07 18:56:06 +0800 | [diff] [blame] | 15 | exec "${SCRIPT}" "$@" |