/drivers/ieee1394/oui2c.sh

https://bitbucket.org/evzijst/gittest · Shell · 23 lines · 13 code · 6 blank · 4 comment · 2 complexity · a2e33f1ebfc6b10b3457076bd6c9fdce MD5 · raw file

  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