hasmbr 171 B

123456789101112
  1. #!/bin/rc
  2. if(! ~ $#* 1) {
  3. echo 'usage: hasmbr /dev/sdC0/part' >[1=2]
  4. exit usage
  5. }
  6. x=`{xd -b $1 | sed -n '32p;32q'}
  7. if(~ $x(16) 55 && ~ $x(17) aa)
  8. exit ''
  9. exit nope