aboutsummaryrefslogtreecommitdiffstats
path: root/package/nvram/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-01-21 23:48:23 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-01-21 23:48:23 +0000
commit6392c009d25e512cbe633458f09d120fba713fda (patch)
tree6b0a2e550e8fe0e9731b54ca485fb6d54c731e46 /package/nvram/files
parent8cf8f93092c8a38212c4e496abf5dbf1072174af (diff)
downloadupstream-6392c009d25e512cbe633458f09d120fba713fda.tar.gz
upstream-6392c009d25e512cbe633458f09d120fba713fda.tar.bz2
upstream-6392c009d25e512cbe633458f09d120fba713fda.zip
[brcm-2.4] add support for OvisLink WL-1600GL
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19262 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/nvram/files')
-rwxr-xr-xpackage/nvram/files/nvram.init8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/nvram/files/nvram.init b/package/nvram/files/nvram.init
index 75d712b59c..9eae17fd8a 100755
--- a/package/nvram/files/nvram.init
+++ b/package/nvram/files/nvram.init
@@ -74,5 +74,13 @@ start() {
nvram set il0macaddr=$(nvram get et0macaddr|
awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
}
+
+ [ "$(nvram get et0macaddr)" = "00:90:4c:c0:00:08" ] && {
+ # OvisLink WL-1600GL mac workaround
+ nvram set et0macaddr=$(hexdump -n 6 -s 130976 -e '5/1 "%02x:" "%02x" ' /dev/mtd/0)
+ nvram set il0macaddr=$(nvram get et0macaddr|
+ awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
+ }
+
[ "$COMMIT" = "1" ] && nvram commit
}