isventiisect 256 B

12345678910111213
  1. #!/bin/rc
  2. if(! ~ $#* 1){
  3. echo 'usage: isventiisect /dev/sdC0/part' >[1=2]
  4. exit usage
  5. }
  6. arg=$1
  7. if(! cmp -s <{dd -quiet 1 -if $arg -bs 1024 -iseek 256 |
  8. dd -quiet 1 -bs 4 -count 1 | xd -b | sed 1q} <{echo '0000000 d1 5c 5e c7'})
  9. exit notisect
  10. exit 0