If you need to restore your iOS device, you can use this script to restore every package previously installed. You will need the file dpkglist.txt created with the script iplcreatorbypedro.sh.
Make sure your device has enough charge and the internet is working properly.
All done. Have fun!