#!/bin/sh # Sample shell script to check U-Boot version on Android /bin/dd if=/dev/block/mmcblk0 of=/data/temp.bin bs=512 skip=97 count=1334 grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /data/temp.bin | grep -a "(" rm /data/temp.bin