cvs commit: src/usr.sbin/sysinstall installUpgrade.c

Daniel O'Connor doconnor at gsoft.com.au
Wed Jun 6 02:11:17 UTC 2007


On Wednesday 06 June 2007 07:44, M. Warner Losh wrote:
> : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ &&
> : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}'
> : /etc/fstab`");
> :
> : where the regex is built from every device name in device_names
> : (which even then doesn't cater for GEOM where devices might be
> : called anything).  This is something that would require a build
> : tool, which is why I haven't done it yet.
>
> "mmcsd" is also a disk.

Why not iterate over the output of sysctl -n kern.disks?
I'd offer a diff but my awk-fu is weak :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070606/0e0aca7f/attachment.pgp


More information about the cvs-src mailing list