| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 start on started factory | 68 start on started factory |
| 69 stop on starting halt or starting reboot | 69 stop on starting halt or starting reboot |
| 70 | 70 |
| 71 respawn | 71 respawn |
| 72 script | 72 script |
| 73 tail -n 48 -F /var/log/factory.log > /dev/tty3 | 73 tail -n 48 -F /var/log/factory.log > /dev/tty3 |
| 74 end script | 74 end script |
| 75 EOF | 75 EOF |
| 76 | 76 |
| 77 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | 77 patch -d ${ROOT_FS_DIR} -Np1 <<EOF |
| 78 diff --git old/etc/init/software-update.conf new/etc/init/software-update.conf | |
| 79 index 28c9086..9ebf2b9 100644 | |
| 80 --- old/etc/init/software-update.conf | |
| 81 +++ new/etc/init/software-update.conf | |
| 82 @@ -7,7 +7,7 @@ | |
| 83 # | |
| 84 # when boot reaches login prompt, start up software update check. | |
| 85 | |
| 86 -start on stopped boot-complete | |
| 87 +start on never | |
| 88 | |
| 89 respawn | |
| 90 EOF | |
| 91 | |
| 92 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | |
| 93 diff -Nau old/etc/init/chrontel.conf new/etc/init/ | 78 diff -Nau old/etc/init/chrontel.conf new/etc/init/ |
| 94 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 | 79 --- old/etc/init/chrontel.conf 2010-08-05 16:32:55.000000000 -0700 |
| 95 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 | 80 +++ new/etc/init/chrontel.conf 2010-08-05 16:32:45.000000000 -0700 |
| 96 @@ -7,7 +7,7 @@ | 81 @@ -7,7 +7,7 @@ |
| 97 | 82 |
| 98 # start as early as possible to allow login screen on hdmi | 83 # start as early as possible to allow login screen on hdmi |
| 99 # Need udev to have connected the i2c before we can use it | 84 # Need udev to have connected the i2c before we can use it |
| 100 -start on started udev | 85 -start on started udev |
| 101 +start on never | 86 +start on never |
| 102 stop on starting halt or starting reboot | 87 stop on starting halt or starting reboot |
| 103 | 88 |
| 104 # sadly, these can't reference each other. | 89 # sadly, these can't reference each other. |
| 105 EOF | 90 EOF |
| OLD | NEW |