luca020400

Untitled

Jan 7th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. list_device=$(cat <<EOF
  2. XT1068
  3. XT1069
  4. XT1068/69
  5. XT1063
  6. XT1064
  7. XT1063/64
  8. titan
  9. EOF
  10. )
  11.  
  12. device=`$adb shell getprop ro.product.model`
  13. for models in list_device; do if [ $device == $models ]; then echo "* Device is supported :D *"; else error=$(( $error + 1 )); fi; done
  14. if [ $error=7 ] then echo "* Device isn't supported :( *" && exit 0
Advertisement
Add Comment
Please, Sign In to add comment