OLD | NEW |
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 | 10 |
(...skipping 19 matching lines...) Loading... |
30 # Use of this source code is governed by a BSD-style license that can be | 30 # Use of this source code is governed by a BSD-style license that can be |
31 # found in the LICENSE file. | 31 # found in the LICENSE file. |
32 | 32 |
33 description "Chrome OS factory startup stub" | 33 description "Chrome OS factory startup stub" |
34 author "chromium-os-dev@chromium.org" | 34 author "chromium-os-dev@chromium.org" |
35 | 35 |
36 start on stopped udev-addon | 36 start on stopped udev-addon |
37 stop on starting halt or starting reboot | 37 stop on starting halt or starting reboot |
38 | 38 |
39 script | 39 script |
| 40 /sbin/modprobe i2c-dev |
40 cd /usr/local/autotest | 41 cd /usr/local/autotest |
41 eval \$(./site_tests/suite_Factory/startx.sh) | 42 eval \$(./site_tests/suite_Factory/startx.sh) |
42 date >>/var/log/factory.log | 43 date >>/var/log/factory.log |
43 if [ ! -e factory_started ]; then | 44 if [ ! -e factory_started ]; then |
44 touch factory_started | 45 touch factory_started |
45 cp -f site_tests/suite_Factory/control . | 46 cp -f site_tests/suite_Factory/control . |
46 ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 | 47 ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 |
47 else | 48 else |
48 ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 | 49 ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 |
49 fi | 50 fi |
(...skipping 41 matching lines...) Loading... |
91 # Use of this source code is governed by a BSD-style license that can be | 92 # Use of this source code is governed by a BSD-style license that can be |
92 # found in the LICENSE file. | 93 # found in the LICENSE file. |
93 | 94 |
94 -start on starting ui | 95 -start on starting ui |
95 +start on starting factory | 96 +start on starting factory |
96 | 97 |
97 respawn | 98 respawn |
98 | 99 |
99 EOF | 100 EOF |
100 fi | 101 fi |
OLD | NEW |