Advertisement
Push28

autodetecion codee

Jun 25th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.74 KB | None | 0 0
  1. mkdir /home/pi/RetroPie/roms/amiga
  2.     cd /home/pi/RetroPie/roms/amiga
  3.     clear
  4.     zip="/home/pi/RetroPie/roms/amiga/amigasnapped.zip"
  5.     roms="/home/pi/RetroPie/roms/amiga/Xenon.adf"
  6.     if [ -f "$roms" ]
  7.         then
  8.             echo "Romset already download and extracted. Please uninstall first."
  9.             sleep 15
  10.         else
  11.             if [ -f "$zip" ]
  12.                 then
  13.                     echo "Romset main archive already there so Gamewizard will extract it now"
  14.                     sleep 5
  15.                     unzip -o /home/pi/RetroPie/roms/amiga/amigasnapped.zip -d /home/pi/RetroPie/roms/amiga
  16.                     sudo rm -f /home/pi/RetroPie/roms/amiga/amigasnapped.zip
  17.                     sudo rm -f /home/pi/RetroPie/roms/amiga/amigasnapped.zip.*
  18.                     clear
  19.                    
  20.                         if [ -f "$roms" ]
  21.                             then
  22.                                 echo "Amiga romset correctly installed"
  23.                                 sleep 15
  24.                             else
  25.                                 echo "Something went wrong. Please check your free disk space or the server might be too busy."
  26.                                 echo "Please try again and notice me of the problem on facebook or the forum."
  27.                                 sleep 15
  28.                         fi
  29.                 else
  30.                     echo "Downloading and Extracting Romset"
  31.                     sleep 5
  32.                     wget -q -c  --show-progress --limit-rate=1024k http://gamewizard.ca/full/amigasnapped.zip
  33.                     unzip -o /home/pi/RetroPie/roms/amiga/amigasnapped.zip -d /home/pi/RetroPie/roms/amiga
  34.                     sudo rm -f /home/pi/RetroPie/roms/amiga/amigasnapped.zip
  35.                     sudo rm -f /home/pi/RetroPie/roms/amiga/amigasnapped.zip.*
  36.                     if [ -f "$roms" ]
  37.                             then
  38.                                 echo "Romset sucessfully installed."
  39.                                 sleep 15
  40.                             else
  41.                                 echo "Something went wrong. Please check your free disk space or the server might be too busy."
  42.                                 echo "Please try again and notice me of the problem on facebook or the forum."
  43.                                 sleep 15
  44.                         fi
  45.                 fi     
  46.     fi
  47.     ###sudo reboot now
  48.     cd /home/pi
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement