~javier.collado/utah/initctl-unity8

« back to all changes in this revision

Viewing changes to examples/run_utah_phablet.py

  • Committer: Andy Doan
  • Date: 2013-07-12 20:43:09 UTC
  • mfrom: (965.3.8 touch-networking)
  • Revision ID: andy.doan@canonical.com-20130712204309-gwmiq9l2w4o8966a
Tags: 0.14.1
fixes needed for touch and reboot edge cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import subprocess
25
25
import sys
26
26
import threading
27
 
import time
28
27
 
29
28
from SimpleXMLRPCServer import SimpleXMLRPCServer
30
29
 
78
77
 
79
78
    print('= setting up network...')
80
79
    subprocess.check_call(cmd)
81
 
    time.sleep(5)  # give the device some time to aquire an IP
82
80
    print()
83
81
 
84
82
 
91
89
    print("= installing utah...")
92
90
    device.adb_root()
93
91
    device.wait_for_device()
 
92
    device.wait_for_network()
94
93
    device.run_ubuntu('add-apt-repository -y {}'.format(ppa))
95
94
    device.run_ubuntu('apt-get update -qq')
96
95
    device.run_ubuntu('apt-get install -yq --force-yes utah-client')