This allows to restart the device.
BUG=skia: TBR=borenet Review URL: https://codereview.chromium.org/1137873007
This commit is contained in:
parent
2e5b4c52c5
commit
9b4b91f5c2
17
platform_tools/ios/bin/ios_restart
Executable file
17
platform_tools/ios/bin/ios_restart
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
###############################################################################
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
|
# found in the LICENSE file.
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Restarts the the attached iOS device.
|
||||||
|
#
|
||||||
|
set -x -e
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
source $SCRIPT_DIR/ios_setup.sh
|
||||||
|
|
||||||
|
ios_restart
|
||||||
|
sleep 20
|
@ -102,6 +102,7 @@ ios_umount() {
|
|||||||
|
|
||||||
# ios_restart: restarts the iOS device.
|
# ios_restart: restarts the iOS device.
|
||||||
ios_restart() {
|
ios_restart() {
|
||||||
|
ios_umount || true
|
||||||
idevicediagnostics restart
|
idevicediagnostics restart
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user