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

Unified Diff: mod_for_factory_scripts/factory_startx.sh

Issue 2825014: Move factory UI files to autotest repo. (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: move startx to deps Created 10 years, 6 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 | « mod_for_factory_scripts/400configAutotest ('k') | mod_for_factory_scripts/factory_ui » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_factory_scripts/factory_startx.sh
diff --git a/mod_for_factory_scripts/factory_startx.sh b/mod_for_factory_scripts/factory_startx.sh
deleted file mode 100644
index 5a38fa32526794375875e3ea4f96ee20191760c9..0000000000000000000000000000000000000000
--- a/mod_for_factory_scripts/factory_startx.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-XAUTH=/usr/bin/xauth
-XAUTH_FILE="/var/run/factory_ui.auth"
-SERVER_READY=
-DISPLAY=":0"
-
-user1_handler () {
- echo "X server ready..." 1>&2
- SERVER_READY=y
-}
-
-trap user1_handler USR1
-MCOOKIE=$(head -c 8 /dev/urandom | openssl md5)
-${XAUTH} -q -f ${XAUTH_FILE} add ${DISPLAY} . ${MCOOKIE}
-
-/sbin/xstart.sh ${XAUTH_FILE} &
-
-while [ -z ${SERVER_READY} ]; do
- sleep .1
-done
-
-/sbin/initctl emit factory-ui-started
-cat /proc/uptime > /tmp/uptime-x-started
-
-echo "DISPLAY=${DISPLAY}; export DISPLAY"
-echo "XAUTHORITY=${XAUTH_FILE}; export XAUTHORITY"
« no previous file with comments | « mod_for_factory_scripts/400configAutotest ('k') | mod_for_factory_scripts/factory_ui » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698