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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 | 46 ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 |
47 else | 47 else |
48 ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 | 48 ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 |
49 fi | 49 fi |
50 end script | 50 end script |
51 | 51 |
52 pre-stop script | 52 pre-stop script |
53 pkill python | 53 pkill python |
54 pkill X | 54 pkill X |
55 end script | 55 end script |
56 | |
57 post-stop script | |
58 chvt 2 | |
59 end script | |
60 EOF | 56 EOF |
61 | 57 |
62 cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF | 58 cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF |
63 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 59 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
64 # Use of this source code is governed by a BSD-style license that can be | 60 # Use of this source code is governed by a BSD-style license that can be |
65 # found in the LICENSE file. | 61 # found in the LICENSE file. |
66 | 62 |
67 description "Print Chrome OS factory log to tty3" | 63 description "Print Chrome OS factory log to tty3" |
68 author "chromium-os-dev@chromium.org" | 64 author "chromium-os-dev@chromium.org" |
69 | 65 |
(...skipping 25 matching lines...) Expand all Loading... |
95 # Use of this source code is governed by a BSD-style license that can be | 91 # Use of this source code is governed by a BSD-style license that can be |
96 # found in the LICENSE file. | 92 # found in the LICENSE file. |
97 | 93 |
98 -start on starting ui | 94 -start on starting ui |
99 +start on starting factory | 95 +start on starting factory |
100 | 96 |
101 respawn | 97 respawn |
102 | 98 |
103 EOF | 99 EOF |
104 fi | 100 fi |
OLD | NEW |