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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 start on started factory | 67 start on started factory |
68 stop on starting halt or starting reboot | 68 stop on starting halt or starting reboot |
69 | 69 |
70 respawn | 70 respawn |
71 script | 71 script |
72 tail -n 48 -F /var/log/factory.log >/dev/tty3 | 72 tail -n 48 -F /var/log/factory.log >/dev/tty3 |
73 end script | 73 end script |
74 EOF | 74 EOF |
75 | 75 |
| 76 if [ -r "${ROOT_FS_DIR}/etc/init/update-engine.conf" ]; then |
| 77 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
| 78 diff -Na -U 0 old/etc/init/update-engine.conf new/etc/init/ |
| 79 --- old/etc/init/update-engine.conf 2010-08-05 16:32:55.000000000 -0700 |
| 80 +++ new/etc/init/update-engine.conf 2010-08-05 16:32:45.000000000 -0700 |
| 81 @@ -8 +8 @@ |
| 82 -start on starting system-services and started dbus |
| 83 +start on never |
| 84 EOF |
| 85 fi |
| 86 |
76 if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then | 87 if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then |
77 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF | 88 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
78 diff -Nau old/etc/init/chrontel.conf new/etc/init/ | 89 diff -Nau old/etc/init/chrontel.conf new/etc/init/ |
79 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 | 90 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 |
80 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 | 91 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 |
81 @@ -7 +7 @@ | 92 @@ -7 +7 @@ |
82 -start on started udev | 93 -start on started udev |
83 +start on never | 94 +start on never |
84 EOF | 95 EOF |
85 fi | 96 fi |
86 | 97 |
87 if [ -r "${ROOT_FS_DIR}/etc/init/nvrm.conf" ]; then | 98 if [ -r "${ROOT_FS_DIR}/etc/init/nvrm.conf" ]; then |
88 patch -d "${ROOT_FS_DIR}" -Np1 << EOF | 99 patch -d "${ROOT_FS_DIR}" -Np1 << EOF |
89 --- old/etc/init/nvrm.conf 2010-11-19 14:57:16.000000000 -0800 | 100 --- old/etc/init/nvrm.conf 2010-11-19 14:57:16.000000000 -0800 |
90 +++ new/etc/init/nvrm.conf 2010-11-19 16:52:48.000000000 -0800 | 101 +++ new/etc/init/nvrm.conf 2010-11-19 16:52:48.000000000 -0800 |
91 @@ -2,7 +2,7 @@ | 102 @@ -2,7 +2,7 @@ |
92 # Use of this source code is governed by a BSD-style license that can be | 103 # Use of this source code is governed by a BSD-style license that can be |
93 # found in the LICENSE file. | 104 # found in the LICENSE file. |
94 | 105 |
95 -start on starting ui | 106 -start on starting ui |
96 +start on starting factory | 107 +start on starting factory |
97 | 108 |
98 respawn | 109 respawn |
99 | 110 |
100 EOF | 111 EOF |
101 fi | 112 fi |
OLD | NEW |