oui2c.sh 303 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. cat <<EOF
  3. /* Generated file for OUI database */
  4. #include <linux/config.h>
  5. #ifdef CONFIG_IEEE1394_OUI_DB
  6. struct oui_list_struct {
  7. int oui;
  8. char *name;
  9. } oui_list[] = {
  10. EOF
  11. while read oui name; do
  12. echo " { 0x$oui, \"$name\" },"
  13. done
  14. cat <<EOF
  15. };
  16. #endif /* CONFIG_IEEE1394_OUI_DB */
  17. EOF