oui2c.sh 277 B

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