Advertisement
Guest User

extract_coreos.sh

a guest
Nov 17th, 2011
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | None | 0 0
  1. #!/bin/bash
  2. #Change this line "TOOLS=/home/wargio/.ps3tools" with the path of your tools, example: TOOLS=/home/god/ps3dev/ps3tools
  3. TOOLS=/home/wargio/.ps3tools
  4. if [ $# -eq 1 ]; then
  5.     echo "Wargio's coreos extractor v0.1"
  6.     echo "Just for 3.56+ PUPs"
  7.     echo ""
  8.     echo "Extracting PUP.."
  9.     $TOOLS/pupunpack $1 PUP_TMP >> logs.txt
  10.     rm -rf logs.txt
  11.     cd PUP_TMP
  12.     echo ""
  13.     echo "Extracting TARs.."
  14.     mkdir update_files
  15.     cd update_files
  16.     tar -xf ../update_files.tar
  17.     echo ""
  18.     echo "Extracting SCE PKGs.."
  19.     $TOOLS/unpkg CORE_OS_PACKAGE* CORE_OStmp
  20.     cd CORE_OStmp
  21.     echo ""
  22.     echo "Extracting CORE_OS.."
  23.     $TOOLS/cosunpkg content CORE_OS >> log.txt
  24.     echo ""
  25.     echo "Almost finished.."
  26.     cp -rf CORE_OS/ ../../../CORE_OS
  27.     cd ../../../
  28.     rm -rf PUP_TMP
  29.     echo "Done..."
  30.     echo "CORE_OS from" $1 "extracted..."
  31. else
  32.     echo "usage: "
  33.     echo "  ./extract_coreos <PUP>"
  34. fi
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement