is9660 307 B

123456789101112
  1. #!/bin/rc
  2. # 0000000 01 C D 0 0 1 01 00 P L A N 9
  3. if(! ~ $#* 1) {
  4. echo 'usage: is9660 /dev/sdC0/part' >[1=2]
  5. exit usage
  6. }
  7. ifs=$nl {id=`{dd -if $1 -bs 2048 -skip 16>[2]/dev/null | xd -c | sed 1q | sed 's/.........(....................).*/\1/'}}
  8. ~ $id '01 C D 0 0 1 01'
  9. exit $status