+include $(TOPDIR)/Rules.make
diff -urN linux.old/drivers/net/diag/diag_led.c linux.dev/drivers/net/diag/diag_led.c
--- linux.old/drivers/net/diag/diag_led.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux.dev/drivers/net/diag/diag_led.c 2006-03-09 11:04:09.000000000 +0100
++++ linux.dev/drivers/net/diag/diag_led.c 2006-03-13 00:58:04.000000000 +0100
@@ -0,0 +1,309 @@
+/*
+ * diag_led.c - replacement diag module
+ reset_gpio=(1<<6);
+ button_gpio=(1<<4);
+
-+ if (!strcmp((nvram_get("boardflags")?:""), "0x0318")) // WRT54G3G
++ if (!strcmp((nvram_get("boardtype")?:""), "0x0101")) // WRT54G3G
+ ses_reverse = 0;
+ else
+ ses_reverse = 1;