Sorry for the double post - previous email was sent in HTML mode. My apology.
----- klibc has "fstype" binary to detect filesystem types during boot time. util-linux mount has "mount -guess-fstype" to do the same. Busybox's volume_id detection is much more powerful than klibc's fstype, so I'm proposing an applet which exposes that functionality in an applet called (unimaginatively) "guess_fstype". Rationale: Of course, one can use blkid for this too but it requires further parsing of the output - this is just a simple applet to output the filesystem type without the need for further parsing. Current usage: Puppy Linux boot scripts depends on a standalone binary of the same name; this standalone binary could have been dropped and replaced with busybox's version. The patch is already in-use in Puppy Linux fork called Fatdog64 Linux. Disclaimer: I'm one of the maintainers of Fatdog64 Linux. Code was co-written by myself and Isaac Dunham (https://github.com/idunham) Patch applies cleanly against the latest git (as of yesterday). cheers!
bb-1.22-aug2013-guess_fstype-applet.patch
Description: Binary data
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox