From 662588686a21c2004e09118a78e905f49d5cea64 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Wed, 31 Aug 2011 16:16:36 +0800 Subject: [PATCH] crosutils: clean up factory test image modification scripts This is the counterpart of http://gerrit.chromium.org/gerrit/6992 , which moves init modification from scripts folder into ebuild file. The 'customizeRelease' is also already deprecated. BUG=chromium-os:9596 TEST=build_images --factory # pass Change-Id: I8087f627f4b13d9f6b1d4bf6003630298a87c627 Reviewed-on: http://gerrit.chromium.org/gerrit/7040 Reviewed-by: Nick Sanders Tested-by: Hung-Te Lin --- mod_for_factory_scripts/200patchInitScript | 66 --------------------- mod_for_factory_scripts/600customizeRelease | 24 -------- 2 files changed, 90 deletions(-) delete mode 100755 mod_for_factory_scripts/200patchInitScript delete mode 100755 mod_for_factory_scripts/600customizeRelease diff --git a/mod_for_factory_scripts/200patchInitScript b/mod_for_factory_scripts/200patchInitScript deleted file mode 100755 index 1ec430f492..0000000000 --- a/mod_for_factory_scripts/200patchInitScript +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2011 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" -touch "${ROOT_FS_DIR}/root/.leave_firmware_alone" - -patch -d "${ROOT_FS_DIR}" -Np1 </dev/null - - # If there is a customize_$BOARD script for this board, let's run it. - # This allows adding settings for specific factories or systems. - CUSTOMIZE="customize_${BOARD}" - if [ -e "${CUSTOMIZE}" ]; then - echo "Running ${CUSTOMIZE}" - "./${CUSTOMIZE}" - fi - - # We don't need the customize script anymore. - rm -f customize_* - - popd >/dev/null -fi