Update buffalo routers support (#842)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 3 Nov 2006 13:36:09 +0000 (13:36 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 3 Nov 2006 13:36:09 +0000 (13:36 +0000)
SVN-Revision: 5418

openwrt/package/base-files/default/etc/init.d/S05nvram

index 5f3a9db39209985c8fe679697fb281f40cd6afa0..8be8cb029f9233423058e1c0f61d6c9b9cfeb529 100755 (executable)
@@ -173,7 +173,10 @@ nvram_default lan_proto static
 }
 
 # hack for some motorola routers
-nvram unset wl0gpio0
+[  "$boardnum" != "00" ] && nvram unset wl0gpio0
+
+# buffalo routers use gpio0 for the aoss input button
+[  "$boardnum" = "00" ] && nvram set wl0gpio0=0
 
 # defaults, can be overridden by hardware-specific nvram_default commands
 nvram_default lan_ifname "br0"