From 47d2054587b4f8bb334faedfa5938243642860a3 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Tue, 7 Nov 2006 20:32:07 +0000 Subject: [PATCH] patch a few WHR-G54S issues SVN-Revision: 5470 --- openwrt/package/base-files/default/etc/init.d/S05nvram | 4 ++-- openwrt/target/linux/package/diag/src/diag.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index 5f3a9db392..e4ce3755e1 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -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" diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 3a9ef9750c..6f232f333e 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -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] = { -- 2.30.2