fix wrt54gs v2.1 ses led support
authorFelix Fietkau <nbd@openwrt.org>
Mon, 13 Mar 2006 07:57:51 +0000 (07:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 13 Mar 2006 07:57:51 +0000 (07:57 +0000)
SVN-Revision: 3355

openwrt/target/linux/linux-2.4/patches/brcm/005-diag_led.patch

index 00863c9db50f67178a6dd0bdc98ce72cbdfab988..6f852982755467c8af808ed5f166d745d5e9b14a 100644 (file)
@@ -29,7 +29,7 @@ diff -urN linux.old/drivers/net/diag/Makefile linux.dev/drivers/net/diag/Makefil
 +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
@@ -288,7 +288,7 @@ diff -urN linux.old/drivers/net/diag/diag_led.c linux.dev/drivers/net/diag/diag_
 +                      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;