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

Unified Diff: src/scripts/mod_for_factory_scripts/200patchInitScript

Issue 1937002: Launch X server from upstart. New factory UI. Misc script tweaks. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: response to feedback Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scripts/mod_for_factory_scripts/400configAutotest » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_factory_scripts/200patchInitScript
diff --git a/src/scripts/mod_for_factory_scripts/200patchInitScript b/src/scripts/mod_for_factory_scripts/200patchInitScript
index cd877e56a589a15ed179054ce544994b8cc9dd2f..391ff07a7d925d858c376a1a6dc58f57098e0dc9 100755
--- a/src/scripts/mod_for_factory_scripts/200patchInitScript
+++ b/src/scripts/mod_for_factory_scripts/200patchInitScript
@@ -5,7 +5,6 @@
# found in the LICENSE file.
echo "Applying patch to init scripts."
-pushd ${ROOT_FS_DIR}
touch ${ROOT_FS_DIR}/root/.factory_test
patch -d ${ROOT_FS_DIR} -Np1 <<EOF
@@ -46,14 +45,15 @@ description "Chrome OS factory startup stub"
author "chromium-os-dev@googlegroups.com"
start on started udev
+stop on starting halt or starting reboot
script
-
cd /usr/local/autotest
+eval \$(./factory_startx.sh)
date >> /var/log/factory.log
if [ ! -e factory_started ]; then
touch factory_started
- cp -f site_tests/suite_Factory/control.full control
+ cp -f site_tests/suite_Factory/control.ui control
./bin/autotest control >> /var/log/factory.log 2>&1
else
./tools/autotest >> /var/log/factory.log 2>&1
@@ -71,8 +71,21 @@ stop on starting halt or starting reboot
respawn
script
-tail -n 48 -F /var/log/factory.log > /dev/tty1
+tail -n 48 -F /var/log/factory.log > /dev/tty3
end script
EOF
-popd
+patch -d ${ROOT_FS_DIR} -Np1 <<EOF
+diff --git old/etc/init/software-update.conf new/etc/init/software-update.conf
+index 28c9086..9ebf2b9 100644
+--- old/etc/init/software-update.conf
++++ new/etc/init/software-update.conf
+@@ -7,7 +7,7 @@
+ #
+ # when dump-boot-stats has run, start up software update check.
+
+-start on stopped dump-boot-stats
++start on never
+
+ respawn
+EOF
« no previous file with comments | « no previous file | src/scripts/mod_for_factory_scripts/400configAutotest » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698