patch a few WHR-G54S issues
authorMike Baker <mbm@openwrt.org>
Tue, 7 Nov 2006 20:32:07 +0000 (20:32 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 7 Nov 2006 20:32:07 +0000 (20:32 +0000)
SVN-Revision: 5470

openwrt/package/base-files/default/etc/init.d/S05nvram
openwrt/target/linux/package/diag/src/diag.c

index 5f3a9db39209985c8fe679697fb281f40cd6afa0..e4ce3755e1a8ee5b48f2300e99c5454c10c8be3d 100755 (executable)
@@ -172,8 +172,8 @@ nvram_default lan_proto static
        nvram_default wl0id 0x4320
 }
 
-# hack for some motorola routers
-nvram unset wl0gpio0
+# motorola boards
+[  "$boardnum" != "00" ] && nvram unset wl0gpio0 
 
 # defaults, can be overridden by hardware-specific nvram_default commands
 nvram_default lan_ifname "br0"
index 3a9ef9750cf1dd5be8dcc83050203ee2997020e9..6f232f333ea98e44c2ba3c0243f1ca7380a08f4c 100644 (file)
@@ -221,12 +221,14 @@ static struct platform_t __init platforms[] = {
                .name           = "Buffalo WHR-G54S",
                .buttons        = {
                        { .name = "reset",      .gpio = 1 << 4 },
+                       { .name = "bridge",     .gpio = 1 << 5 },
                        { .name = "ses",        .gpio = 1 << 0 },
                },
                .leds           = {
-                       { .name = "diag",       .gpio = 1 << 1, .polarity = REVERSE },
+                       { .name = "diag",       .gpio = 1 << 7, .polarity = REVERSE },
                        { .name = "internal",   .gpio = 1 << 3, .polarity = REVERSE },
                        { .name = "ses",        .gpio = 1 << 6, .polarity = REVERSE },
+                       { .name = "bridge",     .gpio = 1 << 1, .polarity = REVERSE },
                },
        },
        [WBR2_G54] = {