Advertisement
mechanicker

fastboot

Feb 16th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # fool the flash-all.sh since it greps for dtbo.sig in fastboot binary: dtbo.sig
  3. prog=$(basename $0)
  4. realprog=${ANDROID_HOME}/platform-tools/${prog}
  5.  
  6. if [ ! -x ${realprog} ] ; then
  7.     echo "error: failed to find ${realprog}"
  8.     exit -1
  9. fi
  10.  
  11. # Copy the args so that we can massage it
  12. args="${EXTOPTS} $*"
  13.  
  14. # Skip reboot if fastboot
  15. if [ ${prog} = fastboot ] ; then
  16.     if [ x$NOWIPE != x ] ; then
  17.         args=${args//-w /}
  18.     fi
  19. fi
  20.  
  21. # Invoke the real command
  22. ${ACTION} ${realprog} ${args}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement