| 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 |
| 11 --- old/etc/init/ui.conf 2010-04-28 21:28:38.886069000 -0700 | 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 | 12 +++ new/etc/init/ui.conf 2010-04-28 21:29:42.676163000 -0700 |
| 13 @@ -5,7 +5,7 @@ | 13 @@ -5,7 +5,7 @@ |
| 14 description "Chrome OS user interface" | 14 description "Chrome OS user interface" |
| 15 author "chromium-os-dev@googlegroups.com" | 15 author "chromium-os-dev@googlegroups.com" |
| 16 | 16 |
| 17 -start on stopping startup | 17 -start on stopping startup |
| 18 +start on never | 18 +start on never |
| 19 stop on starting halt or starting reboot | 19 stop on starting halt or starting reboot |
| 20 | 20 |
| 21 respawn | 21 respawn |
| 22 EOF | 22 EOF |
| 23 | 23 |
| 24 patch -d ${ROOT_FS_DIR} -Np1 <<EOF | 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 | 25 diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf |
| 26 --- old/etc/init/boot-complete.conf 2010-07-21 11:22:30.000000000 +0800 | 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 | 27 +++ new/etc/init/boot-complete.conf 2010-07-21 22:13:36.000000000 +0800 |
| 28 @@ -7,7 +7,7 @@ | 28 @@ -7,7 +7,7 @@ |
| 29 # Processing required during boot after login prompt is displayed. | 29 # Processing required during boot after login prompt is displayed. |
| 30 # Primarily, this means calculating boot time statistics. | 30 # Primarily, this means calculating boot time statistics. |
| 31 | 31 |
| 32 -start on login-prompt-ready | 32 -start on login-prompt-ready |
| 33 +start on stopping startup | 33 +start on started udev |
| 34 | 34 |
| 35 task | 35 task |
| 36 EOF | 36 EOF |
| 37 | 37 |
| 38 cat > ${ROOT_FS_DIR}/etc/init/factory.conf <<EOF | 38 cat > ${ROOT_FS_DIR}/etc/init/factory.conf <<EOF |
| 39 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 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 | 40 # Use of this source code is governed by a BSD-style license that can be |
| 41 # found in the LICENSE file. | 41 # found in the LICENSE file. |
| 42 | 42 |
| 43 description "Chrome OS factory startup stub" | 43 description "Chrome OS factory startup stub" |
| 44 author "chromium-os-dev@googlegroups.com" | 44 author "chromium-os-dev@googlegroups.com" |
| 45 | 45 |
| 46 start on started udev | 46 start on stopped udev-addon |
| 47 stop on starting halt or starting reboot | 47 stop on starting halt or starting reboot |
| 48 | 48 |
| 49 script | 49 script |
| 50 cd /usr/local/autotest | 50 cd /usr/local/autotest |
| 51 eval \$(./site_tests/suite_Factory/startx.sh) | 51 eval \$(./site_tests/suite_Factory/startx.sh) |
| 52 date >> /var/log/factory.log | 52 date >> /var/log/factory.log |
| 53 if [ ! -e factory_started ]; then | 53 if [ ! -e factory_started ]; then |
| 54 touch factory_started | 54 touch factory_started |
| 55 cp -f site_tests/suite_Factory/control . | 55 cp -f site_tests/suite_Factory/control . |
| 56 ./bin/autotest control >> /var/log/factory.log 2>&1 | 56 ./bin/autotest control >> /var/log/factory.log 2>&1 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 @@ -7,7 +7,7 @@ | 81 @@ -7,7 +7,7 @@ |
| 82 | 82 |
| 83 # start as early as possible to allow login screen on hdmi | 83 # start as early as possible to allow login screen on hdmi |
| 84 # 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 |
| 85 -start on started udev | 85 -start on started udev |
| 86 +start on never | 86 +start on never |
| 87 stop on starting halt or starting reboot | 87 stop on starting halt or starting reboot |
| 88 | 88 |
| 89 # sadly, these can't reference each other. | 89 # sadly, these can't reference each other. |
| 90 EOF | 90 EOF |
| OLD | NEW |