On Wed, 6 Jun 2007, Daniel O'Connor wrote: DO> On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: DO> > : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ && DO> > : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}' DO> > : /etc/fstab`"); DO> > : DO> > : where the regex is built from every device name in device_names DO> > : (which even then doesn't cater for GEOM where devices might be DO> > : called anything). This is something that would require a build DO> > : tool, which is why I haven't done it yet. DO> > DO> > "mmcsd" is also a disk. DO> DO> Why not iterate over the output of sysctl -n kern.disks? DO> I'd offer a diff but my awk-fu is weak :)
geom classes will be missed then. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ------------------------------------------------------------------------ _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"