summaryrefslogtreecommitdiff
path: root/rc/bin/inst/hasmbr
blob: 1adaa0a5b3f425aebce58df8fe5ef88b0a7e3e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/rc

if(! ~ $#* 1) {
	echo 'usage: hasmbr /dev/sdC0/part' >[1=2]
	exit usage
}

x=`{xd -b $1 | sed -n '32p;32q'}
if(~ $x(16) 55 && ~ $x(17) aa) 
	exit ''
exit nope