patch-2.4.22 linux-2.4.22/drivers/ieee1394/oui2c.sh

Next file: linux-2.4.22/drivers/ieee1394/pcilynx.c
Previous file: linux-2.4.22/drivers/ieee1394/oui.db
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/ieee1394/oui2c.sh linux-2.4.22/drivers/ieee1394/oui2c.sh
@@ -0,0 +1,23 @@
+#!/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

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)