Index: client/deps/factory/startx.sh |
diff --git a/client/deps/factory/startx.sh b/client/deps/factory/startx.sh |
index d960e4d01c26571fefee0ca11c3ccc04f7ba3497..52a5917ee9af00859e7fef5db3cafe2558119d7e 100755 |
--- a/client/deps/factory/startx.sh |
+++ b/client/deps/factory/startx.sh |
@@ -27,6 +27,16 @@ while [ -z ${SERVER_READY} ]; do |
sleep .1 |
done |
+export DISPLAY=${DISPLAY} |
+export XAUTHORITY=${XAUTH_FILE} |
+ |
+# TODO : currently necessary as ch7036 stuff only launches if upstart ui but in |
+# future it will be tied to udev |
+if [ -e /usr/bin/ch7036_monitor ] ; then |
+ /sbin/modprobe i2c-dev |
+ /usr/bin/ch7036_monitor -v > /var/log/factory_ch7036_monitor.log & |
+fi |
+ |
/sbin/initctl emit factory-ui-started |
cat /proc/uptime > /tmp/uptime-x-started |