| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 | |
| 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 | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 echo "Applying patch to init scripts." | |
| 8 | |
| 9 touch ${ROOT_FS_DIR}/root/.factory_test | |
| 10 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | |
| 11 --- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 | |
| 12 +++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700 | |
| 13 @@ -5,7 +5,7 @@ | |
| 14 description "Chrome OS user interface" | |
| 15 author "chromium-os-dev@googlegroups.com" | |
| 16 | |
| 17 -start on stopping startup | |
| 18 +start on never | |
| 19 stop on starting halt or starting reboot | |
| 20 | |
| 21 respawn | |
| 22 EOF | |
| 23 | |
| 24 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | |
| 25 diff -Naur old/etc/init/dump-boot-stats.conf new/etc/init/dump-boot-stats.conf | |
| 26 --- old/etc/init/boot-complete.conf 2010-07-21 11:22:30.000000000 +0800 | |
| 27 +++ new/etc/init/boot-complete.conf 2010-07-21 22:13:36.000000000 +0800 | |
| 28 @@ -7,7 +7,7 @@ | |
| 29 # Processing required during boot after login prompt is displayed. | |
| 30 # Primarily, this means calculating boot time statistics. | |
| 31 | |
| 32 -start on login-prompt-ready | |
| 33 +start on stopping startup | |
| 34 | |
| 35 task | |
| 36 EOF | |
| 37 | |
| 38 cat > ${ROOT_FS_DIR}/etc/init/factory.conf <<EOF | |
| 39 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
| 40 # Use of this source code is governed by a BSD-style license that can be | |
| 41 # found in the LICENSE file. | |
| 42 | |
| 43 description "Chrome OS factory startup stub" | |
| 44 author "chromium-os-dev@googlegroups.com" | |
| 45 | |
| 46 start on started udev | |
| 47 stop on starting halt or starting reboot | |
| 48 | |
| 49 script | |
| 50 cd /usr/local/autotest | |
| 51 eval \$(./site_tests/suite_Factory/startx.sh) | |
| 52 date >> /var/log/factory.log | |
| 53 if [ ! -e factory_started ]; then | |
| 54 touch factory_started | |
| 55 cp -f site_tests/suite_Factory/control . | |
| 56 ./bin/autotest control >> /var/log/factory.log 2>&1 | |
| 57 else | |
| 58 ./tools/autotest >> /var/log/factory.log 2>&1 | |
| 59 fi | |
| 60 end script | |
| 61 EOF | |
| 62 | |
| 63 cat > ${ROOT_FS_DIR}/etc/init/factorylog.conf <<EOF | |
| 64 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
| 65 # Use of this source code is governed by a BSD-style license that can be | |
| 66 # found in the LICENSE file. | |
| 67 | |
| 68 start on started factory | |
| 69 stop on starting halt or starting reboot | |
| 70 | |
| 71 respawn | |
| 72 script | |
| 73 tail -n 48 -F /var/log/factory.log > /dev/tty3 | |
| 74 end script | |
| 75 EOF | |
| 76 | |
| 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/ | |
| 94 --- 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 | |
| 96 @@ -7,7 +7,7 @@ | |
| 97 | |
| 98 # start as early as possible to allow login screen on hdmi | |
| 99 # Need udev to have connected the i2c before we can use it | |
| 100 -start on started udev | |
| 101 +start on never | |
| 102 stop on starting halt or starting reboot | |
| 103 | |
| 104 # sadly, these can't reference each other. | |
| 105 EOF | |
| OLD | NEW |