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