2
# Script to add ppa & apps and set timezone
4
# Script does the following:-
10
# * Device already running some build of Ubuntu Touch and is connected via USB
11
# * You're already connected to the network on the device
12
# * You live in London :)
14
# (c) 2013 Canonical - Alan Pope alan.pope@canonical.com
16
UBUNTU_ROOT="/data/ubuntu"
19
echo ":: Run adb root"
21
if [ $? -ne "0" ]; then
22
echo ":: adb root failed"
32
function wait_for_device {
33
echo -n ":: Waiting for device to come back ."
35
while [ "$STATE" == "unknown" ];
44
# Setup network on device
48
echo ":: Build script to do post-install tasks"
51
cat > $TMP_FILE << 'EOF'
53
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
54
add-apt-repository -y ppa:ubuntu-touch-coreapps-drivers/collection
55
add-apt-repository -y ppa:ubuntu-touch-coreapps-drivers/daily
57
apt-get install --yes touch-collection touch-coreapps ssh vnstat pastebinit
58
perl -p -i -e 's/expandable\:\ false/expandable\:\ true/' /usr/share/unity8/Dash/Apps/ApplicationsFilterGrid.qml
59
echo "Europe/London" | sudo tee /etc/timezone
60
dpkg-reconfigure --frontend noninteractive tzdata
63
echo ":: Installing apps"
64
adb push $TMP_FILE $UBUNTU_ROOT/$TMP_FILE
65
adb shell chmod 755 $UBUNTU_ROOT/$TMP_FILE
66
adb shell chroot $UBUNTU_ROOT $UBUNTU_ROOT/$TMP_FILE
68
echo ":: Reboot device"