]> piware.de Git - bin.git/commitdiff
phablet-install: use phablet-network, support $CHANNEL env
authorMartin Pitt <martin@piware.de>
Thu, 7 Nov 2013 05:31:07 +0000 (06:31 +0100)
committerMartin Pitt <martin@piware.de>
Thu, 7 Nov 2013 05:31:07 +0000 (06:31 +0100)
phablet-install

index 3cfccda1ad7da656626321045b873fc73e9c3145..529e80f756e5eb79e8acc911319d3fbbedaf8c62 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-CHANNEL=devel-proposed
+CHANNEL=${CHANNEL:=devel-proposed}
 MYNAME=$(getent passwd `whoami` | cut -f5 -d: | cut -f1 -d,)
 MYMAIL=${DEBMEMAIL:-$EMAIL}
 
@@ -17,9 +17,10 @@ echo "rebooting to activate writable image..."
 adb reboot
 adb wait-for-device
 
+# enable network
+phablet-network -n /etc/NetworkManager/system-connections/pittinet
+
 # install some necessary packages
-echo "connect to wifi now and press Enter"
-read n
 adb shell "apt-get install -y vim bzr ubuntu-ui-toolkit-autopilot ofono-phonesim"
 
 # set up bzr, vim, ssh