/drivers/ieee1394/oui2c.sh
https://bitbucket.org/evzijst/gittest · Shell · 23 lines · 13 code · 6 blank · 4 comment · 2 complexity · a2e33f1ebfc6b10b3457076bd6c9fdce MD5 · raw file
- #!/bin/sh
- cat <<EOF
- /* Generated file for OUI database */
- #include <linux/config.h>
- #ifdef CONFIG_IEEE1394_OUI_DB
- struct oui_list_struct {
- int oui;
- char *name;
- } oui_list[] = {
- EOF
- while read oui name; do
- echo " { 0x$oui, \"$name\" },"
- done
- cat <<EOF
- };
- #endif /* CONFIG_IEEE1394_OUI_DB */
- EOF