Advertisement
ShawnArthur

honeystreaklinuxinstall.sh

Sep 3rd, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.05 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. if [ "$(id -u)" != "0" ]; then
  5.     echo "Run script as root or use sudo ./honeystreaklinuxinstall.sh"
  6.     echo "Press any key to exit"
  7.     read
  8.     exit 1
  9. fi
  10.  
  11. clear
  12. echo "Script created by ShawnArthur @ tabletroms.com forum"
  13. echo "use to flash DJ_Steves' DS7 Mods - thanks DJ_Steve"
  14. echo "v0.3"
  15. echo " "
  16. echo "Step 1: Make sure your Dell Streak 7 is fully charged and powered off."
  17. echo "Step 2: Hold down the 'vol plus' and 'vol down' buttons, while plugging the cable into the device; this puts it into APX mode."
  18. echo " "
  19. lsusb
  20. echo " "
  21. echo "If you see ID 0955:7820 NVidia Corp. listed above then you are ready to go."
  22. echo
  23. echo "If you don't see your device listed then try again from step 1 "
  24. echo
  25. echo "Press any key to begin..."
  26. read
  27.  
  28.  
  29.  
  30. echo
  31. ls region_img/
  32. echo
  33. echo "Plese select your region from the above list (type entire file name):"
  34. read region
  35. cp -v ./region_img/$region RC_download.img
  36. echo "Finshed copying region code"
  37. echo
  38.  
  39.  
  40. echo "During the flash process the internal partitions will be set up."
  41. echo "Choose how much space you want on the OS partition:"
  42. echo "1..2GB"
  43. echo "2..3GB"
  44. echo "3..4GB"
  45. echo "4..5GB"
  46. echo "5..6GB"
  47. read howmanygb
  48.  
  49.  
  50. case $howmanygb in
  51.     "1" ) config="android_2gb.cfg";;
  52.     "2" ) config="android_3gb.cfg";;
  53.     "3" ) config="android_4gb.cfg";;
  54.     "4" ) config="android_5gb.cfg";;
  55.     "5" ) config="android_6gb.cfg";;
  56. esac
  57.  
  58. echo "Your region is $region and you chose $config as your system config file."
  59. echo "Is this correct? (y/n)"
  60. read correct
  61. if [ $correct = "y" ]; then
  62.    echo
  63.    echo "Proceed to run the following command './nvflash --bct Streak7.bct --setbct --configfile $config --create --bl bootloader.bin --odmdata 0x8b0c0011 --go' ?"
  64.    echo
  65.    echo "Press any key to continue..."
  66.    read
  67.    ./nvflash --bct Streak7.bct --setbct --configfile $config --create --bl bootloader.bin --odmdata 0x8b0c0011 --go
  68. fi
  69.  
  70. echo
  71. echo
  72. echo "After all the files have been sent, unplug the device and hold the power button untill it boots"
  73. echo "Press any key to exit"
  74. read
  75. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement