Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- if [ ! -f recovery.img ]; then
- echo "Usage: recovery-updater [imagefile]\n"
- exit 0
- fi
- wc -c recovery.img |
- awk '{print [ $1 ]}' |
- xargs printf "0: %.8x" $1 |
- sed -e 's/0\: \(..\)\(..\)\(..\)\(..\)/\4\3\2\1/;s/../\\x&/g' |
- xargs -0 echo -ne $1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement