#!/bin/bash # Copyright (c) 2010 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. echo "Applying patch to init scripts." touch ${ROOT_FS_DIR}/root/.factory_test patch -d ${ROOT_FS_DIR} -Np1 < ${ROOT_FS_DIR}/etc/init/factory.conf <> /var/log/factory.log if [ ! -e factory_started ]; then touch factory_started cp -f site_tests/suite_Factory/control . ./bin/autotest control >> /var/log/factory.log 2>&1 else ./tools/autotest >> /var/log/factory.log 2>&1 fi end script EOF cat > ${ROOT_FS_DIR}/etc/init/factorylog.conf < /dev/tty3 end script EOF patch -d ${ROOT_FS_DIR} -Np1 <