OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2011 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 touch "${ROOT_FS_DIR}/root/.leave_firmware_alone" |
10 | 11 |
11 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF | 12 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
12 --- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 | 13 --- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 |
13 +++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700 | 14 +++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700 |
14 @@ -11 +11 @@ | 15 @@ -11 +11 @@ |
15 -start on stopping startup | 16 -start on stopping startup |
16 +start on never | 17 +start on never |
17 EOF | 18 EOF |
18 | 19 |
19 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF | 20 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 # Use of this source code is governed by a BSD-style license that can be | 56 # Use of this source code is governed by a BSD-style license that can be |
56 # found in the LICENSE file. | 57 # found in the LICENSE file. |
57 | 58 |
58 -start on starting ui | 59 -start on starting ui |
59 +start on starting factory | 60 +start on starting factory |
60 | 61 |
61 respawn | 62 respawn |
62 | 63 |
63 EOF | 64 EOF |
64 fi | 65 fi |
OLD | NEW |