shithub: riscv

ref: 0bc0f1cfcec73baddc58cab9a61c720bb8c15077
dir: /rc/bin/inst/hasmbr/

View raw version
#!/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