~ubuntu-nexus7/ubuntu-nexus7/ubuntu-nexus7-installer

« back to all changes in this revision

Viewing changes to ubuntu-nexus7-installer

  • Committer: Chris Van Hoof
  • Date: 2012-12-07 15:26:06 UTC
  • Revision ID: git-v1:84b5a6554b6a1444925bd0a0c3a365596c6efc69
cleaning up lengthy zenity dialogs to fit better on smaller displays

Signed-off-by: Chris Van Hoof <vanhoof@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 
135
135
    if [[ -z $fb_installed ]];
136
136
    then
137
 
        zenity --warning --title="$Z_STD_TITLE" --text="Fastboot not found:\n\nPlease ensure fastboot is in your PATH or the\nandroid-tools-fastboot package is installed"
 
137
        zenity --warning --no-wrap --title="$Z_STD_TITLE" --text=$'
 
138
Fastboot not found:
 
139
  * Please ensure fastboot is in your PATH or the android-tools-fastboot package is installed'
138
140
        return 1
139
141
    else
140
142
        return 0
145
147
    fb=`sudo -Sp '' -- fastboot devices <<<"${SPW}"`
146
148
    if [[ -z $fb ]];
147
149
    then
148
 
        zenity --warning --title="$Z_STD_TITLE" --text="Your tablet was not detected by fastboot:\n\nPlease ensure your tablet is connected via USB\nand boot into fastboot mode by holding down the\npower and volume down buttons"
 
150
        zenity --warning --no-wrap --title="$Z_STD_TITLE" --text=$'
 
151
Your tablet was not detected by fastboot:
 
152
 
 
153
Please ensure your tablet is connected via USB and boot into fastboot mode by holding down the power and volume down buttons'
149
154
        return 1
150
155
    else
151
156
        return 0
194
199
        exit 1
195
200
    fi 
196
201
 
197
 
    zenity --title="$Z_WELCOME" --question --text="The installer will:\n  * Download images suitable for running Ubuntu Core on the Asus Nexus7\n  * Install the images on the device\n\nThe download and flashing process will take a few minutes to complete\n\nPlease connect your device in fastboot mode\n\n*** THIS IS A DEVELOPMENT RELEASE ***\n\nPlease see https://wiki.ubuntu.com/Nexus7/KnownIssues\nfor more details on known issues and bugs!\n\nReady to begin the installation?"
 
202
    zenity --question --no-wrap --title="$Z_WELCOME" --text=$'
 
203
The Nexus7 installer will:
 
204
 
 
205
  * Download images suitable for running Ubuntu Core on the Asus Nexus7
 
206
  * Install the images on the device
 
207
 
 
208
The download and flashing process will take a few minutes to complete
 
209
 
 
210
Please connect your device in <u>fastboot mode</u>
 
211
 
 
212
<b>*** THIS IS A DEVELOPMENT RELEASE ***</b>
 
213
 
 
214
Please see the <a href="https://wiki.ubuntu.com/Nexus7/KnownIssues">KnownIssues</a> wiki page for more details on known issues and bugs!
 
215
 
 
216
Ready to begin the installation?'
198
217
    RESPONSE=$?
199
218
    if [ "${RESPONSE}" == "1" ]; 
200
219
    then
222
241
    check_prior_download
223
242
    if [ $? -eq 0 ];
224
243
    then
225
 
        zenity --title="$Z_STD_TITLE" --question --text="Previously downloaded images found\n\nWould you like to re-flash using these images?" 
 
244
        zenity --question --no-wrap --title="$Z_STD_TITLE" --text=$'
 
245
Previously downloaded images found
 
246
 
 
247
Would you like to re-flash using these images?'
226
248
        RESPONSE=$?
227
249
        if [ "${RESPONSE}" == "0" ]; 
228
250
        then
356
378
        fi
357
379
    fi
358
380
 
359
 
    zenity --info --title="$Z_STD_TITLE" --text="Nexus7 flashed with Ubuntu Core successfully\n\nIt will take several minutes for the root filesystem\nto be unpacked and installed after reboot"
 
381
    zenity --info --no-wrap --title="$Z_STD_TITLE" --text=$'
 
382
Nexus7 flashed with Ubuntu Core successfully
 
383
 
 
384
It will take several minutes for the root filesystem to be unpacked and installed after reboot'
360
385
 
361
386
    # pop out of WORKDIR
362
387
    popd