Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: mod_for_factory_scripts/200patchInitScript

Issue 6759023: cros mod_image_for_factory: don't enable update engine for factory test images (Closed) Base URL: ssh://gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
11 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF 11 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
12 --- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 12 --- 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 13 +++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700
14 @@ -11 +11 @@ 14 @@ -11 +11 @@
15 -start on stopping startup 15 -start on stopping startup
16 +start on never 16 +start on never
17 EOF 17 EOF
18 18
19 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF 19 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
20 diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf 20 diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf
21 --- old/etc/init/boot-complete.conf 2010-07-21 11:22:30.000000000 +0800 21 --- old/etc/init/boot-complete.conf 2010-07-21 11:22:30.000000000 +0800
22 +++ new/etc/init/boot-complete.conf 2010-07-21 22:13:36.000000000 +0800 22 +++ new/etc/init/boot-complete.conf 2010-07-21 22:13:36.000000000 +0800
23 @@ -15 +15 @@ 23 @@ -15 +15 @@
24 -start on login-prompt-visible 24 -start on login-prompt-visible
25 +start on started udev 25 +start on started udev
26 EOF 26 EOF
27 27
28 if [ -r "${ROOT_FS_DIR}/etc/init/update-engine.conf" ]; then
29 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
30 diff -Na -U 0 old/etc/init/update-engine.conf new/etc/init/
31 --- old/etc/init/update-engine.conf 2010-08-05 16:32:55.000000000 -0700
32 +++ new/etc/init/update-engine.conf 2010-08-05 16:32:45.000000000 -0700
33 @@ -8 +8 @@
34 -start on starting system-services and started dbus
35 +start on never
36 EOF
37 fi
38
28 if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then 39 if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then
29 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF 40 patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
30 diff -Nau old/etc/init/chrontel.conf new/etc/init/ 41 diff -Nau old/etc/init/chrontel.conf new/etc/init/
31 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 42 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700
32 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 43 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700
33 @@ -7 +7 @@ 44 @@ -7 +7 @@
34 -start on started udev 45 -start on started udev
35 +start on never 46 +start on never
36 EOF 47 EOF
37 fi 48 fi
38 49
39 if [ -r "${ROOT_FS_DIR}/etc/init/nvrm.conf" ]; then 50 if [ -r "${ROOT_FS_DIR}/etc/init/nvrm.conf" ]; then
40 patch -d "${ROOT_FS_DIR}" -Np1 << EOF 51 patch -d "${ROOT_FS_DIR}" -Np1 << EOF
41 --- old/etc/init/nvrm.conf 2010-11-19 14:57:16.000000000 -0800 52 --- old/etc/init/nvrm.conf 2010-11-19 14:57:16.000000000 -0800
42 +++ new/etc/init/nvrm.conf 2010-11-19 16:52:48.000000000 -0800 53 +++ new/etc/init/nvrm.conf 2010-11-19 16:52:48.000000000 -0800
43 @@ -2,7 +2,7 @@ 54 @@ -2,7 +2,7 @@
44 # Use of this source code is governed by a BSD-style license that can be 55 # Use of this source code is governed by a BSD-style license that can be
45 # found in the LICENSE file. 56 # found in the LICENSE file.
46 57
47 -start on starting ui 58 -start on starting ui
48 +start on starting factory 59 +start on starting factory
49 60
50 respawn 61 respawn
51 62
52 EOF 63 EOF
53 fi 64 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698