Skip to content

Commit cdd668e

Browse files
author
FirefoxOS Builds
committed
fixes bugs on #5
1 parent c2508ba commit cdd668e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

flash_windows.bat

+14-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ adb.exe remount
1010
echo Removing old channel
1111
adb.exe shell "rm /system/b2g/defaults/pref/updates.js"
1212
echo Pushing new OTA channel
13-
adb.exe push ${files_dir}/updates.js $B2G_PREF_DIR/updates.js
13+
adb.exe push files/updates.js $B2G_PREF_DIR/updates.js
1414
echo Rebooting-...
1515
adb.exe reboot
1616
goto:eof
@@ -20,7 +20,7 @@ echo.
2020
echo We are going to change the update channel,
2121
echo so, in the future you will receive updates
2222
echo without flash every time.
23-
sleep 2
23+
timeout /t 2 /nobreak
2424
echo.
2525
echo 1) Yes
2626
echo 2) No
@@ -72,7 +72,7 @@ adb.exe push root/inari-update-signed.zip /sdcard/fxosbuilds/inari-update-signed
7272
echo.
7373
echo Rebooting on recovery mode
7474
adb.exe reboot recovery
75-
sleep 3
75+
timeout /t 3 /nobreak
7676
echo.
7777
echo Now you need to install first the inari-update.zip package
7878
echo.
@@ -88,7 +88,7 @@ echo Now you need to install first the inari-update-signed.zip package
8888
echo.
8989
echo Press ${red}[Enter]${normal} when you finished it to continue...
9090
PAUSE >nul
91-
adb.exe.exe wait-for-device
91+
adb.exe wait-for-device
9292
echo.
9393
echo Now finish the new setup of FirefoxOS.
9494
echo.
@@ -124,7 +124,7 @@ echo is stucked on boot logo. Just use the power
124124
echo button to turn off your device and turn on again
125125
echo to try again the exploit.
126126
echo.
127-
sleep 6
127+
timeout /t 6 /nobreak
128128
echo
129129
echo .......................................................
130130
echo.
@@ -138,7 +138,7 @@ echo continue after reboot.
138138
echo.
139139
echo .......................................................
140140
echo.
141-
sleep 6
141+
timeout /t 6 /nobreak
142142
adb.exe wait-for-device
143143
adb.exe push root-zte-open /data/local/tmp/
144144
adb.exe shell /data/local/tmp/root-zte-open
@@ -183,7 +183,7 @@ SET /P INPUT=?:
183183
IF /I '%INPUT%'=='1' echo Nice
184184
IF /I '%INPUT%'=='2' (
185185
echo Please, contact us. We will look what we can do for you
186-
sleep 2
186+
timeout /t 2 /nobreak
187187
GOTO main
188188
)
189189
IF /I '%INPUT%'!='1' GOTO bad_number
@@ -206,7 +206,7 @@ echo Rebooting into recovery
206206
adb.exe shell "reboot recovery"
207207
adb.exe wait-for-device
208208
echo Updated!
209-
sleep 2
209+
timeout /t 2 /nobreak
210210
GOTO verify_update
211211
goto:eof
212212

@@ -235,12 +235,12 @@ SET /P INPUT=Are you ready?:
235235

236236
IF /I '%INPUT%'=='1' (
237237
echo The update process will start in 5 seconds
238-
sleep 5
238+
timeout /t 5 /nobreak
239239
GOTO go_update
240240
)
241241
IF /I '%INPUT%'=='2' (
242242
echo You need to be root first to update
243-
sleep 2
243+
timeout /t 2 /nobreak
244244
GOTO root
245245
)
246246
IF /I '%INPUT%'=='3' GOTO main
@@ -279,7 +279,7 @@ goto:eof
279279

280280
:not_agree
281281
echo ** You don't agree **
282-
sleep 3
282+
timeout /t 3 /nobreak
283283
GOTO main
284284
goto:eof
285285

@@ -409,21 +409,21 @@ goto:eof
409409
:bad_number
410410
echo.
411411
echo Enter a valid number
412-
sleep 2
412+
timeout /t 2 /nobreak
413413
goto:eof
414414

415415
:bad_number_main
416416
echo.
417417
echo Enter a valid number
418-
sleep 2
418+
timeout /t 2 /nobreak
419419
GOTO main
420420
goto:eof
421421

422422
:quit
423423
echo.
424424
echo ------------------------------------------
425425
echo Exiting FirefoxOS Builds installer
426-
sleep 2
426+
timeout /t 2 /nobreak
427427
exit 0
428428
goto:eof
429429

0 commit comments

Comments
 (0)