xref: /plan9/sys/lib/dist/pc/inst/hasmbr (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1#!/bin/rc
2
3if(! ~ $#* 1) {
4	echo 'usage: hasmbr /dev/sdC0/part' >[1=2]
5	exit usage
6}
7
8x=`{xd -b $1 | sed -n '32p;32q'}
9if(~ $x(16) 55 && ~ $x(17) aa)
10	exit ''
11exit nope
12
13