Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Unified Diff: mod_for_factory_scripts/200patchInitScript

Issue 6665048: Update mod_image_for_test to use the new factorytest-init package (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Remove an obsolete style fix Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_factory_scripts/200patchInitScript
diff --git a/mod_for_factory_scripts/200patchInitScript b/mod_for_factory_scripts/200patchInitScript
index 422d8af92638987258a80b5174e673e452fb1945..aff0d9e4584d4a7ea2c9b349424961d14500c158 100755
--- a/mod_for_factory_scripts/200patchInitScript
+++ b/mod_for_factory_scripts/200patchInitScript
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# 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.
@@ -25,54 +25,6 @@ diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf
+start on started udev
EOF
-cat >"${ROOT_FS_DIR}/etc/init/factory.conf" <<EOF
-# 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.
-
-description "Chrome OS factory startup stub"
-author "chromium-os-dev@chromium.org"
-
-start on stopped udev-addon
-stop on starting halt or starting reboot
-
-script
-/sbin/modprobe i2c-dev
-cd /usr/local/autotest
-eval \$(./site_tests/suite_Factory/startx.sh)
-date >>/var/log/factory.log
-if [ ! -e factory_started ]; then
- touch factory_started
- cp -f site_tests/suite_Factory/control .
- ./bin/autotest -t factory control >>/var/log/factory.log 2>&1
-else
- ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1
-fi
-end script
-
-pre-stop script
- pkill python
- pkill X
-end script
-EOF
-
-cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF
-# 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.
-
-description "Print Chrome OS factory log to tty3"
-author "chromium-os-dev@chromium.org"
-
-start on started factory
-stop on starting halt or starting reboot
-
-respawn
-script
-tail -n 48 -F /var/log/factory.log >/dev/tty3
-end script
-EOF
-
if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then
patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
diff -Nau old/etc/init/chrontel.conf new/etc/init/
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698