Skip to content

Commit

Permalink
chrome os/linux installation are now the same
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Feb 15, 2014
1 parent a50dfa8 commit c5d8e17
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,24 @@ if [ -f "/usr/bin/old_bins/chromeos-tpm-recovery" ]; then # Chrome OS
echo " "
exit 0
fi
if [ "$(arch)" == "arm" ]; then # Chrome OS on ARM CPU
echo "[WARN] The ADB binaries for ARM are out of date, and do not work on Android 4.2.2+"
if [ "$(arch)" == "i386" ] || [ "$(arch)" == "i486" ] || [ "$(arch)" == "i586" ] || [ "$(arch)" == "amd64" ] || [ "$(arch)" == "x86_64" ] || [ "$(arch)" == "i686" ]; then # Chrome OS on Intel x86/x86_64 CPU
echo "[INFO] Downloading ADB for Chrome OS [Intel CPU]..."
sudo curl -s -o $ADB "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-i386-adb?raw=true" -LOk
echo "[INFO] Downloading Fastboot for Chrome [Intel CPU]..."
sudo curl -s -o $FASTBOOT "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-i386-fastboot?raw=true" -LOk
elif [ "$(arch)" == "arm" ]; then # Chrome on ARM CPU
echo "[WARN] The ADB binaries for ARM are out of date, and do not work on Android 4.2.2+"
echo "[INFO] Downloading ADB for Chrome OS [ARM CPU]..."
sudo curl -s -o $ADB "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-arm-adb?raw=true" -LOk
echo "[INFO] Downloading Fastboot for Chrome OS [ARM CPU]..."
sudo curl -s -o $FASTBOOT "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-arm-fastboot?raw=true" -LOk
else # Chrome OS on Intel CPU
echo "[INFO] Downloading ADB for Chrome OS [Intel CPU]..."
sudo curl -s -o $ADB "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-i386-adb?raw=true" -LOk
echo "[INFO] Downloading Fastboot for Chrome OS [Intel CPU]..."
sudo curl -s -o $FASTBOOT "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-i386-fastboot?raw=true" -LOk
else
echo "[EROR] Your CPU platform could not be detected. Now exiting."
echo " "
exit 0
fi
echo "[INFO] Downloading udev list..."
sudo curl -s -o $UDEV "http://github.com/corbindavenport/nexus-tools/blob/master/udev.txt?raw=true" -LOk
sudo curl -s -o $UDEV "http://github.com/corbindavenport/nexus-tools/blob/master/udev.txt" -LOk
echo "[INFO] Making ADB and Fastboot executable..."
sudo chmod +x $ADB
sudo chmod +x $FASTBOOT
Expand All @@ -81,7 +85,7 @@ elif [ "$(uname)" == "Darwin" ]; then # Mac OS X
echo " "
exit 0
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Generic Linux
if [ "$(arch)" == "i386" ] || [ "$(arch)" == "i486" ] || [ "$(arch)" == "i586" ] || [ "$(arch)" == "amd64" ] || [ "$(arch)" == "x86_64" ] || [ "$(arch)" == "i686" ]; then # Linux on Intel x86/x86_64 CPU
if [ "$(arch)" == "i386" ] || [ "$(arch)" == "i486" ] || [ "$(arch)" == "i586" ] || [ "$(arch)" == "amd64" ] || [ "$(arch)" == "x86_64" ] || [ "$(arch)" == "i686" ]; then # Linux on Intel x86/x86_64 CPU
echo "[INFO] Downloading ADB for Linux [Intel CPU]..."
sudo curl -s -o $ADB "http://github.com/corbindavenport/nexus-tools/blob/master/bin/linux-i386-adb?raw=true" -LOk
echo "[INFO] Downloading Fastboot for Linux [Intel CPU]..."
Expand Down

0 comments on commit c5d8e17

Please sign in to comment.