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 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | 10 patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
(...skipping 30 matching lines...) Expand all Loading... |
41 # found in the LICENSE file. | 41 # found in the LICENSE file. |
42 | 42 |
43 description "Chrome OS factory startup stub" | 43 description "Chrome OS factory startup stub" |
44 author "chromium-os-dev@googlegroups.com" | 44 author "chromium-os-dev@googlegroups.com" |
45 | 45 |
46 start on started udev | 46 start on started udev |
47 stop on starting halt or starting reboot | 47 stop on starting halt or starting reboot |
48 | 48 |
49 script | 49 script |
50 cd /usr/local/autotest | 50 cd /usr/local/autotest |
51 eval \$(./deps/factory/startx.sh) | 51 eval \$(./site_tests/suite_Factory/startx.sh) |
52 date >> /var/log/factory.log | 52 date >> /var/log/factory.log |
53 if [ ! -e factory_started ]; then | 53 if [ ! -e factory_started ]; then |
54 touch factory_started | 54 touch factory_started |
55 cp -f site_tests/suite_Factory/control . | 55 cp -f site_tests/suite_Factory/control . |
56 ./bin/autotest control >> /var/log/factory.log 2>&1 | 56 ./bin/autotest control >> /var/log/factory.log 2>&1 |
57 else | 57 else |
58 ./tools/autotest >> /var/log/factory.log 2>&1 | 58 ./tools/autotest >> /var/log/factory.log 2>&1 |
59 fi | 59 fi |
60 end script | 60 end script |
61 EOF | 61 EOF |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 @@ -7,7 +7,7 @@ | 96 @@ -7,7 +7,7 @@ |
97 | 97 |
98 # start as early as possible to allow login screen on hdmi | 98 # start as early as possible to allow login screen on hdmi |
99 # Need udev to have connected the i2c before we can use it | 99 # Need udev to have connected the i2c before we can use it |
100 -start on started udev | 100 -start on started udev |
101 +start on never | 101 +start on never |
102 stop on starting halt or starting reboot | 102 stop on starting halt or starting reboot |
103 | 103 |
104 # sadly, these can't reference each other. | 104 # sadly, these can't reference each other. |
105 EOF | 105 EOF |
OLD | NEW |