Strangely I can`t seem to find it anywhere. Not SourceForge... Nowhere.
My problem is it reports "unknown" for the newer Puppy SFS files.
I could swear it use to work with the old SFS files.
I noticed that was upgraded to id ext4, so how about a fix for this problem?
I can use "file /Path/SquashFile" to detect files, but partitions still need guess_fstype.
"file" only reports "block" for partitions.
Code: Select all
fsType=`file $PF |tr [S] [s] |egrep -o '(squashfs|ext2|ext3|ext4)'` # image file
[ "$fsType" = "" ]&& # partition
fsType$ =`guess_fstype $PF |egrep -o '(ext2|ext3|ext4|swap|ntfs|vfat)'`
Is there a fix for this? Or a better way to detect partitions and image files in one command?