fetch ethernet vendor IDs, in the maner of /sys/lib/scsicodes Notes: Thu Feb 25 13:18:25 EST 2010 geoff Thanks for submitting this. The numbers are actually Organisationally Unique Identifiers and are used for many things, not just Ethernet MAC addresses, so I'm installing the file as /lib/oui. Reference: /n/sources/patch/applied/ether-vendors Date: Tue Feb 23 22:29:59 CET 2010 Signed-off-by: steve@quintile.net Reviewed-by: geoff --- /sys/lib/ether-vendors Thu Jan 1 00:00:00 1970 +++ /sys/lib/ether-vendors Tue Feb 23 22:27:51 2010 @@ -0,0 +1,9 @@ +#!/bin/rc +{ + sed '/^$/q' ether-vendors + hget http://standards.ieee.org/regauth/oui/oui.txt | + tr A-Z a-z | + sed -n 's/([^ ]+)[ ]+.base 16.[ ]+(.*)[ ]*/\1 \2/p' +} > nether-vendors && mv nether-vendors ether-vendors +exit +