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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
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 XAUTH=/usr/bin/xauth
8 XAUTH_FILE="/var/run/factory_ui.auth"
9 SERVER_READY=
10 DISPLAY=":0"
11
12 user1_handler () {
13 echo "X server ready..." 1>&2
14 SERVER_READY=y
15 }
16
17 trap user1_handler USR1
18 MCOOKIE=$(head -c 8 /dev/urandom | openssl md5)
19 ${XAUTH} -q -f ${XAUTH_FILE} add ${DISPLAY} . ${MCOOKIE}
20
21 /sbin/xstart.sh ${XAUTH_FILE} &
22
23 while [ -z ${SERVER_READY} ]; do
24 sleep .1
25 done
26
27 /sbin/initctl emit factory-ui-started
28 cat /proc/uptime > /tmp/uptime-x-started
29
30 echo "DISPLAY=${DISPLAY}; export DISPLAY"
31 echo "XAUTHORITY=${XAUTH_FILE}; export XAUTHORITY"
OLDNEW
« 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