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

Side by Side Diff: mod_for_factory_scripts/200patchInitScript

Issue 2825014: Move factory UI files to autotest repo. (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: move startx to deps Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | mod_for_factory_scripts/400configAutotest » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 echo "Applying patch to init scripts." 7 echo "Applying patch to init scripts."
8 8
9 touch ${ROOT_FS_DIR}/root/.factory_test 9 touch ${ROOT_FS_DIR}/root/.factory_test
10 patch -d ${ROOT_FS_DIR} -Np1 <<EOF 10 patch -d ${ROOT_FS_DIR} -Np1 <<EOF
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 # found in the LICENSE file. 42 # found in the LICENSE file.
43 43
44 description "Chrome OS factory startup stub" 44 description "Chrome OS factory startup stub"
45 author "chromium-os-dev@googlegroups.com" 45 author "chromium-os-dev@googlegroups.com"
46 46
47 start on started udev 47 start on started udev
48 stop on starting halt or starting reboot 48 stop on starting halt or starting reboot
49 49
50 script 50 script
51 cd /usr/local/autotest 51 cd /usr/local/autotest
52 eval \$(./factory_startx.sh) 52 eval \$(./deps/factory/startx.sh)
53 date >> /var/log/factory.log 53 date >> /var/log/factory.log
54 if [ ! -e factory_started ]; then 54 if [ ! -e factory_started ]; then
55 touch factory_started 55 touch factory_started
56 cp -f site_tests/suite_Factory/control.ui control 56 cp -f site_tests/suite_Factory/control .
57 ./bin/autotest control >> /var/log/factory.log 2>&1 57 ./bin/autotest control >> /var/log/factory.log 2>&1
58 else 58 else
59 ./tools/autotest >> /var/log/factory.log 2>&1 59 ./tools/autotest >> /var/log/factory.log 2>&1
60 fi 60 fi
61 end script 61 end script
62 EOF 62 EOF
63 63
64 cat > ${ROOT_FS_DIR}/etc/init/factorylog.conf <<EOF 64 cat > ${ROOT_FS_DIR}/etc/init/factorylog.conf <<EOF
65 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 65 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
66 # Use of this source code is governed by a BSD-style license that can be 66 # Use of this source code is governed by a BSD-style license that can be
(...skipping 15 matching lines...) Expand all
82 +++ new/etc/init/software-update.conf 82 +++ new/etc/init/software-update.conf
83 @@ -7,7 +7,7 @@ 83 @@ -7,7 +7,7 @@
84 # 84 #
85 # when dump-boot-stats has run, start up software update check. 85 # when dump-boot-stats has run, start up software update check.
86 86
87 -start on stopped dump-boot-stats 87 -start on stopped dump-boot-stats
88 +start on never 88 +start on never
89 89
90 respawn 90 respawn
91 EOF 91 EOF
OLDNEW
« no previous file with comments | « no previous file | mod_for_factory_scripts/400configAutotest » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698