mirror of
https://github.com/libimobiledevice/idevicerestore.git
synced 2026-03-18 19:52:26 +00:00
14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
if [[ -z $(docker images | grep idevicerestore-docker) ]]; then
|
|
echo "Container not built, you will need to build it with 'build.sh'"
|
|
exit -1
|
|
fi
|
|
|
|
docker rm --force idevicerestore || true
|
|
|
|
docker run --name idevicerestore -it --privileged --net=host -v /dev:/dev -v /run/udev/control:/run/udev/control -v "$(pwd):/tmp" idevicerestore-docker idevicerestore.sh "$@"
|
|
|