michael@0: #!/bin/bash michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: # michael@0: # This script is run by the update smoketest frontend michael@0: michael@0: ADB=${ADB:-adb} michael@0: DEVICE=$1 michael@0: michael@0: run_adb() { michael@0: $ADB -s $DEVICE $@ michael@0: } michael@0: michael@0: run_adb push %(flash_zip)s %(sdcard)s/_flash.zip michael@0: run_adb shell 'echo -n "--update_package=%(sdcard_recovery)s/_flash.zip" > /cache/recovery/command' michael@0: run_adb reboot recovery