~pixelherodev/ANTS

5eae0c58b5108f9129cb85ed96e84cdc057da511 — Noam Preil 11 months ago 8e1e183
fstype: detect fossils
1 files changed, 5 insertions(+), 0 deletions(-)

M rc/bin/fstype
M rc/bin/fstype => rc/bin/fstype +5 -0
@@ 6,6 6,11 @@ if(~ $"m 01CD00101){
	echo 9660
	exit
}
m=`{dd -bs 1024 -count 1 -if $1 -iseek 127 >[2]/dev/null}
if(~ $"m fossil*){
	echo fossil
	exit
}
dd -if $1 -count 1 >/env/block >[2]/dev/null
fn fat {
	m=`{dd -if /env/block -bs 1 -count 3 -skip $1 >[2]/dev/null}